Fix typo ActionLayer::receiveEventPlus(...)

This method is rarely used, however it returned 0 after adding stuff.
It now returns the sum.
This commit is contained in:
Tobias Loose
2013-11-17 19:38:14 +01:00
parent 7a48c5e087
commit 446ed20758

View File

@@ -264,7 +264,7 @@ int ActionLayer::receiveEventPlus(WEvent * event)
ActionElement * currentAction = (ActionElement *) mObjects[i]; ActionElement * currentAction = (ActionElement *) mObjects[i];
result += currentAction->receiveEvent(event); result += currentAction->receiveEvent(event);
} }
return 0; return result;
} }
int ActionLayer::isReactingToTargetClick(Targetable * card) int ActionLayer::isReactingToTargetClick(Targetable * card)