diff options
author | Nipun Garg | 2019-06-21 06:46:20 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:53 +0200 |
commit | fd8ad8e3da8e14d3e52504f2041e55f38cdc0985 (patch) | |
tree | 5c85a53ce7d9935f5b59d2b613ad09f2e5ea2254 | |
parent | 223d024e307c7df461678c133f92b86cea3be8e5 (diff) | |
download | scummvm-rg350-fd8ad8e3da8e14d3e52504f2041e55f38cdc0985.tar.gz scummvm-rg350-fd8ad8e3da8e14d3e52504f2041e55f38cdc0985.tar.bz2 scummvm-rg350-fd8ad8e3da8e14d3e52504f2041e55f38cdc0985.zip |
HDB: Fix signed/unsigned mismatch warnings
-rw-r--r-- | engines/hdb/map-loader.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/hdb/map-loader.cpp b/engines/hdb/map-loader.cpp index c17a6f0c9e..3b2fbe3792 100644 --- a/engines/hdb/map-loader.cpp +++ b/engines/hdb/map-loader.cpp @@ -695,19 +695,19 @@ void Map::removeBGTileAnimation(int x, int y) { if (flags & kFlagAnimFast) { for(Common::Array<uint32>::iterator it = _listBGAnimFast.begin(); it!=_listBGAnimFast.end(); it++) - if (i == (*it)) { + if ((uint)i == (*it)) { _listBGAnimFast.erase(it); break; } } else if (flags & kFlagAnimSlow) { for (Common::Array<uint32>::iterator it = _listBGAnimSlow.begin(); it != _listBGAnimSlow.end(); it++) - if (i == (*it)) { + if ((uint)i == (*it)) { _listBGAnimSlow.erase(it); break; } } else if (flags & kFlagAnimMedium) { for (Common::Array<uint32>::iterator it = _listBGAnimMedium.begin(); it != _listBGAnimMedium.end(); it++) - if (i == (*it)) { + if ((uint)i == (*it)) { _listBGAnimMedium.erase(it); break; } @@ -721,19 +721,19 @@ void Map::removeFGTileAnimation(int x, int y) { if (flags & kFlagAnimFast) { for(Common::Array<uint32>::iterator it = _listFGAnimFast.begin(); it!=_listFGAnimFast.end(); it++) - if (i == (*it)) { + if ((uint)i == (*it)) { _listFGAnimFast.erase(it); break; } } else if (flags & kFlagAnimSlow) { for (Common::Array<uint32>::iterator it = _listFGAnimSlow.begin(); it != _listFGAnimSlow.end(); it++) - if (i == (*it)) { + if ((uint)i == (*it)) { _listFGAnimSlow.erase(it); break; } } else if (flags & kFlagAnimMedium) { for (Common::Array<uint32>::iterator it = _listFGAnimMedium.begin(); it != _listFGAnimMedium.end(); it++) - if (i == (*it)) { + if ((uint)i == (*it)) { _listFGAnimMedium.erase(it); break; } |