- fix a bug where the AI would crash when playing cards with cycling or any other "autohand" ability
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-01-10 09:48:26 +00:00
parent b3dc2bcda2
commit cee2da600d
2 changed files with 5 additions and 1 deletions

View File

@@ -217,6 +217,10 @@ int ActionLayer::reactToClick(MTGCardInstance * card){
void ActionLayer::setMenuObject(Targetable * object, bool must){
if (!object){
OutputDebugString("FATAL: ActionLayer::setMenuObject\n");
return;
}
menuObject = object;
SAFE_DELETE(abilitiesMenu);