TSAGE: Stop shadowing local variables

This commit is contained in:
Max Horn 2011-05-02 14:34:59 +02:00
parent 7407a48cd3
commit a5598aaaa8

View File

@ -200,11 +200,11 @@ struct DecodeReference {
*/ */
byte *TLib::getResource(uint16 id, bool suppressErrors) { byte *TLib::getResource(uint16 id, bool suppressErrors) {
// Scan for an entry for the given Id // Scan for an entry for the given Id
ResourceEntry *re= NULL; ResourceEntry *re = NULL;
ResourceList::iterator i; ResourceList::iterator iter;
for (i = _resources.begin(); i != _resources.end(); ++i) { for (iter = _resources.begin(); iter != _resources.end(); ++iter) {
if ((*i).id == id) { if ((*iter).id == id) {
re = &(*i); re = &(*iter);
break; break;
} }
} }