diff options
Diffstat (limited to 'engines/xeen/dialogs.cpp')
-rw-r--r-- | engines/xeen/dialogs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/dialogs.cpp b/engines/xeen/dialogs.cpp index 33eda14414..a2535fdf02 100644 --- a/engines/xeen/dialogs.cpp +++ b/engines/xeen/dialogs.cpp @@ -54,7 +54,7 @@ void ButtonContainer::addButton(const Common::Rect &bounds, int val, SpriteResou void ButtonContainer::addPartyButtons(XeenEngine *vm) { Party &party = *vm->_party; - for (uint idx = 0; idx < party._activeParty.size(); ++idx) { + for (uint idx = 0; idx < MAX_ACTIVE_PARTY; ++idx) { addButton(Common::Rect(CHAR_FACES_X[idx], 150, CHAR_FACES_X[idx] + 32, 182), Common::KEYCODE_F1 + idx, nullptr, false); } |