diff --git a/projects/mtg/src/ActionStack.cpp b/projects/mtg/src/ActionStack.cpp index a849925ba..ffbfc05b4 100644 --- a/projects/mtg/src/ActionStack.cpp +++ b/projects/mtg/src/ActionStack.cpp @@ -619,6 +619,8 @@ Spell * ActionStack::addSpell(MTGCardInstance * _source, TargetChooser * tc, Man Interruptible * ActionStack::getAt(int id) { + if (!mObjects.size())//nothing to get. + return NULL; if (id < 0) id = mCount + id; if (id > mCount - 1)