Per the conversation in r3388, adding an extra seatbelt to ensure that if an object is removed from ActionLayer, it doesn't leave a dangling pointer in mReactions. This should normally be a no-op, as the expectation is that mReactions is usually empty at this point.

This commit is contained in:
wrenczes@gmail.com
2011-04-10 15:29:00 +00:00
parent 35f251688a
commit 630c7eb1ee

View File

@@ -20,6 +20,7 @@ MTGAbility* ActionLayer::getAbility(int type)
int ActionLayer::moveToGarbage(ActionElement * e)
{
mReactions.erase(e);
int i = getIndexOf(e);
if (i != -1)
{