diff options
author | Paul Gilbert | 2015-02-09 21:34:03 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-02-09 21:34:03 -0500 |
commit | c798a555105c58f82d373b92b479a577d4215cb9 (patch) | |
tree | da62144c4c02d60ec8bfafe2e681a35c7ff63167 /engines/xeen/party.cpp | |
parent | 62eb39515b0f19a52861e9dd0fb4ac6af8c1c2ba (diff) | |
download | scummvm-rg350-c798a555105c58f82d373b92b479a577d4215cb9.tar.gz scummvm-rg350-c798a555105c58f82d373b92b479a577d4215cb9.tar.bz2 scummvm-rg350-c798a555105c58f82d373b92b479a577d4215cb9.zip |
XEEN: More refactoring needed for party dialog setup
Diffstat (limited to 'engines/xeen/party.cpp')
-rw-r--r-- | engines/xeen/party.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp index ff59ed9b18..5cf5181142 100644 --- a/engines/xeen/party.cpp +++ b/engines/xeen/party.cpp @@ -186,6 +186,13 @@ void Party::synchronize(Common::Serializer &s) { s.syncBytes(&dummy[0], 30); } +void Party::loadActiveParty() { + _activeParty.resize(_partyCount); + for (int i = 0; i < _partyCount; ++i) { + _activeParty[i] = _roster[_partyMembers[i]]; + } +} + bool Party::checkSkill(Skill skillId) { uint total = 0; for (uint i = 0; i < _activeParty.size(); ++i) { |