MOHAWK: Issue a warning when trying to pop with no card pushed
This commit is contained in:
parent
fe7e58d0d1
commit
4b81c807c8
1 changed files with 5 additions and 0 deletions
|
@ -509,6 +509,11 @@ void MystScriptParser::o_changeCardPop(uint16 op, uint16 var, uint16 argc, uint1
|
|||
debugC(kDebugScript, "Opcode %d: Return To Stored Card Id", op);
|
||||
debugC(kDebugScript, "\tCardId: %d", _savedCardId);
|
||||
|
||||
if (_savedCardId == 0) {
|
||||
warning("No pushed card to go back to");
|
||||
return;
|
||||
}
|
||||
|
||||
TransitionType transition = static_cast<TransitionType>(argv[0]);
|
||||
|
||||
_vm->changeToCard(_savedCardId, transition);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue