From a6e485e57660e6bff479c6e50f4e570017179b6d Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 9 Aug 2019 18:03:40 -0700 Subject: XEEN: Fix not giving skills if party doesn't have enough gold --- engines/xeen/scripts.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/xeen') 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; -- cgit v1.2.3