diff options
author | Paul Gilbert | 2019-08-09 18:03:40 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-08-09 18:03:40 -0700 |
commit | a6e485e57660e6bff479c6e50f4e570017179b6d (patch) | |
tree | cfdbe6c35f601ffd1b47bd685470d475a65d8a7f /engines/xeen | |
parent | 05535616b4a168c5a8dcfc639dbef401756c33de (diff) | |
download | scummvm-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.cpp | 2 |
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 ¶ms) { if (!party.giveTake(mode1, val1, mode2, val2, _charIndex - 1)) { if (mode2 == 79) windows.closeAll(); + } else { + return cmdExit(params); } } break; |