diff options
author | Paul Gilbert | 2014-04-12 12:09:29 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-04-12 12:09:29 -0400 |
commit | 8b2a7525cc6af408f05e2bac9b1b16ed0b36dcda (patch) | |
tree | 67786ffb7944e812e1ba18e48d448eb80cc2c603 /engines/mads/nebular/dialogs_nebular.cpp | |
parent | bb82a344a96bcf63c63ab6a297b83eaefa0383d6 (diff) | |
download | scummvm-rg350-8b2a7525cc6af408f05e2bac9b1b16ed0b36dcda.tar.gz scummvm-rg350-8b2a7525cc6af408f05e2bac9b1b16ed0b36dcda.tar.bz2 scummvm-rg350-8b2a7525cc6af408f05e2bac9b1b16ed0b36dcda.zip |
MADS: Fix a bunch of GCC warnings
Diffstat (limited to 'engines/mads/nebular/dialogs_nebular.cpp')
-rw-r--r-- | engines/mads/nebular/dialogs_nebular.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp index 13019d589c..30b28fe9d7 100644 --- a/engines/mads/nebular/dialogs_nebular.cpp +++ b/engines/mads/nebular/dialogs_nebular.cpp @@ -169,12 +169,12 @@ bool DialogsNebular::show(int msgId) { } else if (commandCheck("VERB", valStr, commandText)) { dialogText += getVocab(action._activeAction._verbId); } else if (commandCheck("INDEX", valStr, commandText)) { - int idx = atoi(valStr.c_str()); - if (_indexList[idx]) - dialogText += getVocab(_indexList[idx]); + int idxLocal = atoi(valStr.c_str()); + if (_indexList[idxLocal]) + dialogText += getVocab(_indexList[idxLocal]); } else if (commandCheck("NUMBER", valStr, commandText)) { - int idx = atoi(valStr.c_str()); - dialogText += Common::String::format("%.4d", _indexList[idx]); + int idxLocal = atoi(valStr.c_str()); + dialogText += Common::String::format("%.4d", _indexList[idxLocal]); } else if (commandCheck("NOUN1", valStr, commandText)) { if (!textNoun(dialogText, 1, valStr)) dialogText += getVocab(action._activeAction._objectNameId); |