diff options
author | Paul Gilbert | 2018-03-30 20:38:45 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-30 20:38:45 -0400 |
commit | 66b8da5b02468680293cef860403d4eb4941a6d9 (patch) | |
tree | 1a0af70eb376f4fbab340beb3360bf6d6d6d8957 /engines/xeen | |
parent | 60bb10e92bf90c75f6966c4793c4e123b29ab51d (diff) | |
download | scummvm-rg350-66b8da5b02468680293cef860403d4eb4941a6d9.tar.gz scummvm-rg350-66b8da5b02468680293cef860403d4eb4941a6d9.tar.bz2 scummvm-rg350-66b8da5b02468680293cef860403d4eb4941a6d9.zip |
XEEN: Fix escaping Cast Spell dialog during combat trying to cast spell
Diffstat (limited to 'engines/xeen')
-rw-r--r-- | engines/xeen/dialogs/dialogs_spells.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/xeen/dialogs/dialogs_spells.cpp b/engines/xeen/dialogs/dialogs_spells.cpp index 3645b2e9b1..e1a0c22e3e 100644 --- a/engines/xeen/dialogs/dialogs_spells.cpp +++ b/engines/xeen/dialogs/dialogs_spells.cpp @@ -412,7 +412,8 @@ int CastSpell::show(XeenEngine *vm) { spellId = dlg->execute(c); if (g_vm->shouldExit() || spellId == -1) { - result = 0; + result = -1; + break; } else { result = spells.castSpell(c, (MagicSpell)spellId); } |