mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 20:59:00 +00:00
TSAGE: Stop shadowing local variables
This commit is contained in:
parent
7407a48cd3
commit
a5598aaaa8
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user