diff --git a/projects/mtg/src/CardGui.cpp b/projects/mtg/src/CardGui.cpp index 86d328636..61d95e56f 100644 --- a/projects/mtg/src/CardGui.cpp +++ b/projects/mtg/src/CardGui.cpp @@ -89,7 +89,7 @@ CardView::~CardView() { if (card) { - const Pos* r = card->view; + const Pos* r = this; while (card) { if (r == card->view) diff --git a/projects/mtg/src/GuiPlay.cpp b/projects/mtg/src/GuiPlay.cpp index 2a2f9da39..191a5f6ee 100644 --- a/projects/mtg/src/GuiPlay.cpp +++ b/projects/mtg/src/GuiPlay.cpp @@ -370,6 +370,11 @@ int GuiPlay::receiveEventPlus(WEvent * e) { event->card->view->actT = event->after ? M_PI / 2 : 0; } + else + { + // this should never happen, if you have a consistent repro case, ping Wil please + assert(false); + } return 1; } else if (WEventPhaseChange *event = dynamic_cast(e))