Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitff2c059

Browse files
author
andersyang
committed
bool vector operator [] crash
1 parent55d1710 commitff2c059

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎inc/behaviac/agent/agent.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,11 @@ namespace behaviac {
651651
voidset(bool v) {
652652
behaviac::THREAD_ID_TYPE threadId =behaviac::GetTID();
653653
bool* value = m_threadInt.find((long)threadId);
654+
if (!value)
655+
{
656+
m_threadInt.add((long)threadId, v);
657+
return;
658+
}
654659
BEHAVIAC_ASSERT(value);
655660
*value = v;
656661
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp