aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
authorPaul Gilbert2019-08-09 18:03:40 -0700
committerPaul Gilbert2019-08-09 18:03:40 -0700
commita6e485e57660e6bff479c6e50f4e570017179b6d (patch)
treecfdbe6c35f601ffd1b47bd685470d475a65d8a7f /engines/xeen
parent05535616b4a168c5a8dcfc639dbef401756c33de (diff)
downloadscummvm-rg350-a6e485e57660e6bff479c6e50f4e570017179b6d.tar.gz
scummvm-rg350-a6e485e57660e6bff479c6e50f4e570017179b6d.tar.bz2
scummvm-rg350-a6e485e57660e6bff479c6e50f4e570017179b6d.zip
XEEN: Fix not giving skills if party doesn't have enough gold
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/scripts.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp
index c85362b786..2feb4fa355 100644
--- a/engines/xeen/scripts.cpp
+++ b/engines/xeen/scripts.cpp
@@ -802,6 +802,8 @@ bool Scripts::cmdTakeOrGive(ParamsIterator &params) {
if (!party.giveTake(mode1, val1, mode2, val2, _charIndex - 1)) {
if (mode2 == 79)
windows.closeAll();
+ } else {
+ return cmdExit(params);
}
}
break;