aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2011-05-02 14:34:59 +0200
committerMax Horn2011-05-02 14:34:59 +0200
commita5598aaaa8e0ad434283e56040fc05498e68222c (patch)
treed02ba2971816de38322b7b3afbdff681e4830ca4
parent7407a48cd30de9db15556c66ccdb10df0b40fe0a (diff)
downloadscummvm-rg350-a5598aaaa8e0ad434283e56040fc05498e68222c.tar.gz
scummvm-rg350-a5598aaaa8e0ad434283e56040fc05498e68222c.tar.bz2
scummvm-rg350-a5598aaaa8e0ad434283e56040fc05498e68222c.zip
TSAGE: Stop shadowing local variables
-rw-r--r--engines/tsage/resources.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/tsage/resources.cpp b/engines/tsage/resources.cpp
index 4a188c12f7..a73c23ab7f 100644
--- a/engines/tsage/resources.cpp
+++ b/engines/tsage/resources.cpp
@@ -200,11 +200,11 @@ struct DecodeReference {
*/
byte *TLib::getResource(uint16 id, bool suppressErrors) {
// Scan for an entry for the given Id
- ResourceEntry *re= NULL;
- ResourceList::iterator i;
- for (i = _resources.begin(); i != _resources.end(); ++i) {
- if ((*i).id == id) {
- re = &(*i);
+ ResourceEntry *re = NULL;
+ ResourceList::iterator iter;
+ for (iter = _resources.begin(); iter != _resources.end(); ++iter) {
+ if ((*iter).id == id) {
+ re = &(*iter);
break;
}
}