From 66b8da5b02468680293cef860403d4eb4941a6d9 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 30 Mar 2018 20:38:45 -0400 Subject: XEEN: Fix escaping Cast Spell dialog during combat trying to cast spell --- engines/xeen/dialogs/dialogs_spells.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/xeen') 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); } -- cgit v1.2.3