aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/party.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-21 07:26:52 -0400
committerPaul Gilbert2018-04-21 07:26:52 -0400
commit0aeecb6c336ae5f97aee940165fdff8a55bdcdba (patch)
tree594f2c8cdb3e56725c958a726b72fe6278c9ec9f /engines/xeen/party.cpp
parentea524fa7928813585f666d2f64e57253c464bb60 (diff)
downloadscummvm-rg350-0aeecb6c336ae5f97aee940165fdff8a55bdcdba.tar.gz
scummvm-rg350-0aeecb6c336ae5f97aee940165fdff8a55bdcdba.tar.bz2
scummvm-rg350-0aeecb6c336ae5f97aee940165fdff8a55bdcdba.zip
XEEN: Swords changes for game flags array
Diffstat (limited to 'engines/xeen/party.cpp')
-rw-r--r--engines/xeen/party.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp
index b6ac558712..94ba964428 100644
--- a/engines/xeen/party.cpp
+++ b/engines/xeen/party.cpp
@@ -922,7 +922,8 @@ bool Party::giveTake(int takeMode, uint takeVal, int giveMode, uint giveVal, int
break;
}
case 20:
- _gameFlags[files._ccNum][takeVal] = false;
+ assert(takeVal < 256);
+ _gameFlags[_vm->getGameID() == GType_Swords ? 0 : files._ccNum][takeVal] = false;
break;
case 21: {
const uint WEAPONS_END = _vm->getGameID() != GType_Swords ? 35 : 41;
@@ -1187,7 +1188,8 @@ bool Party::giveTake(int takeMode, uint takeVal, int giveMode, uint giveVal, int
break;
}
case 20:
- _gameFlags[files._ccNum][giveVal] = true;
+ assert(giveVal < 256);
+ _gameFlags[_vm->getGameID() == GType_Swords ? 0 : files._ccNum][giveVal] = true;
break;
case 21: {
const uint WEAPONS_END = _vm->getGameID() != GType_Swords ? 35 : 41;