Erwan
- fix a bug where the AI would crash when playing cards with cycling or any other "autohand" ability
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user