diff options
author | Le Philousophe | 2019-06-30 16:43:32 +0200 |
---|---|---|
committer | Le Philousophe | 2019-06-30 16:46:32 +0200 |
commit | 38bead0c37c61e118378053659a2874830bbb85a (patch) | |
tree | af55ad641838a27c288076a91dee6c14d9ff8469 /engines/cryomni3d/sprites.cpp | |
parent | cabcf240b40c67d4777031bdef28e2a36c81c26d (diff) | |
download | scummvm-rg350-38bead0c37c61e118378053659a2874830bbb85a.tar.gz scummvm-rg350-38bead0c37c61e118378053659a2874830bbb85a.tar.bz2 scummvm-rg350-38bead0c37c61e118378053659a2874830bbb85a.zip |
JANITORIAL/CRYOMNI3D: Fix warnings in MSVC
Most of them were due to setting -1 to unsigned values
Else it was bogus unintialized values
Diffstat (limited to 'engines/cryomni3d/sprites.cpp')
-rw-r--r-- | engines/cryomni3d/sprites.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cryomni3d/sprites.cpp b/engines/cryomni3d/sprites.cpp index 36cd439f1c..81844e7ad0 100644 --- a/engines/cryomni3d/sprites.cpp +++ b/engines/cryomni3d/sprites.cpp @@ -86,7 +86,7 @@ void Sprites::setupMapTable(const uint *table, uint size) { _map = nullptr; // Reset the reverse mapping for (Common::Array<CryoCursor *>::iterator it = _cursors.begin(); it != _cursors.end(); it++) { - (*it)->_constantId = -1; + (*it)->_constantId = uint(-1); } if (table) { _map = new Common::Array<uint>(table, size); @@ -185,7 +185,7 @@ uint Sprites::calculateSpriteId(uint baseId, uint offset) const { error("Calculate sprite is out of bounds: %d/%d", baseId, _cursors.size()); } uint spriteId = _cursors[baseId]->_constantId; - if (spriteId == -1u) { + if (spriteId == uint(-1)) { error("Sprite %d is unreachable", baseId); } return spriteId; |