From 0aeecb6c336ae5f97aee940165fdff8a55bdcdba Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 21 Apr 2018 07:26:52 -0400 Subject: XEEN: Swords changes for game flags array --- engines/xeen/party.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/xeen/party.cpp') 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; -- cgit v1.2.3