aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs_party.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-28 15:46:10 -0400
committerPaul Gilbert2016-08-28 15:46:10 -0400
commitef6253fb19822b9a2e9a1ba00418f1d33afff65f (patch)
tree367e064d6a1e2d7f233f624e8fe2e975d20722ff /engines/xeen/dialogs_party.cpp
parent0c199f079bc1ed62e6c13f292d569fc52eac546c (diff)
downloadscummvm-rg350-ef6253fb19822b9a2e9a1ba00418f1d33afff65f.tar.gz
scummvm-rg350-ef6253fb19822b9a2e9a1ba00418f1d33afff65f.tar.bz2
scummvm-rg350-ef6253fb19822b9a2e9a1ba00418f1d33afff65f.zip
XEEN: gcc compilation fixes
Diffstat (limited to 'engines/xeen/dialogs_party.cpp')
-rw-r--r--engines/xeen/dialogs_party.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/xeen/dialogs_party.cpp b/engines/xeen/dialogs_party.cpp
index 544c110c82..69761bb4ec 100644
--- a/engines/xeen/dialogs_party.cpp
+++ b/engines/xeen/dialogs_party.cpp
@@ -240,8 +240,8 @@ void PartyDialog::execute() {
// Rebuild the character list
_charList.clear();
for (int idx = 0; idx < XEEN_TOTAL_CHARACTERS; ++idx) {
- Character &c = party._roster[idx];
- if (!c._name.empty() && c._savedMazeId == party._priorMazeId) {
+ Character &ch = party._roster[idx];
+ if (!ch._name.empty() && ch._savedMazeId == party._priorMazeId) {
_charList.push_back(idx);
}
}
@@ -339,7 +339,7 @@ void PartyDialog::setupFaces(int firstDisplayChar, bool updateFlag) {
drawParty(updateFlag);
// Set up the sprite set to use for each face
- for (int posIndex = 0; posIndex < 4; ++posIndex) {
+ for (posIndex = 0; posIndex < 4; ++posIndex) {
if ((firstDisplayChar + posIndex) >= (int)_charList.size())
_faceDrawStructs[posIndex]._sprites = nullptr;
else