There was an error while loading. Please reload this page.
2 parents b971373 + 8b5b267 commit 640bca0Copy full SHA for 640bca0
1 file changed
Engine/source/util/messaging/eventManager.cpp
@@ -95,7 +95,7 @@ bool EventManagerListener::onMessageReceived( StringTableEntry queue, const char
95
Con::executef(itter.listener, itter.callback, data);
96
itter.callDepth--;
97
98
- if (itter.removeFlag && itter.callback == 0)
+ if (itter.removeFlag && itter.callDepth == 0)
99
{
100
subscribers->erase(i);
101
continue;
0 commit comments