From 4e869812312cfdae9f4d76d49c05ede092bbb68e Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Sat, 28 May 2011 23:31:45 +0000 Subject: [PATCH] fix for issue 642. noticed thier is a whole slew of bugs in story mode that didn't exist before. this mode has been neglected and we should consider taking some time to bring it back up to standard. i'll open some tickets for it later. --- projects/mtg/src/ActionStack.cpp | 2 ++ 1 file changed, 2 insertions(+) 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)