From 33c081858e76609c3c275089371f2d177d206bd6 Mon Sep 17 00:00:00 2001 From: "wagic.the.homebrew@gmail.com" Date: Sat, 26 Sep 2009 10:50:48 +0000 Subject: [PATCH] Erwan - Fix issue 43 (Combat zone sometimes stay open) --- projects/mtg/src/GuiPlay.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/mtg/src/GuiPlay.cpp b/projects/mtg/src/GuiPlay.cpp index 65e0fc534..0baba7f09 100644 --- a/projects/mtg/src/GuiPlay.cpp +++ b/projects/mtg/src/GuiPlay.cpp @@ -218,6 +218,8 @@ int GuiPlay::receiveEventMinus(WEvent * e) for (iterator it = cards.begin(); it != cards.end(); ++it) if (event->card->previous == (*it)->card || event->card == (*it)->card ) { + if (event->card->previous->attacker) battleField.removeAttacker(event->card->previous); + else if (event->card->attacker) battleField.removeAttacker(event->card); CardView* cv = *it; cs->Remove(cv); cards.erase(it);