aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-10 20:57:37 -0400
committerPaul Gilbert2018-04-10 20:57:37 -0400
commit701df47cae2885c5c68bd03c41d0dda70072668d (patch)
tree198a80af8af05c0ac8f2d9b91c1111251e536e88
parent5d6dbf78581b703060f4225f69990f5cec0b055f (diff)
downloadscummvm-rg350-701df47cae2885c5c68bd03c41d0dda70072668d.tar.gz
scummvm-rg350-701df47cae2885c5c68bd03c41d0dda70072668d.tar.bz2
scummvm-rg350-701df47cae2885c5c68bd03c41d0dda70072668d.zip
XEEN: Fix removing too many Monga Melons during quest
-rw-r--r--engines/xeen/scripts.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp
index 298dead111..0e6d721241 100644
--- a/engines/xeen/scripts.cpp
+++ b/engines/xeen/scripts.cpp
@@ -738,7 +738,12 @@ bool Scripts::cmdTakeOrGive(ParamsIterator &params) {
// Break out of character loop
idx = party._activeParty.size();
break;
+ default:
+ break;
}
+ } else {
+ // Break out of character loop
+ idx = party._activeParty.size();
}
break;