diff options
author | Eugene Sandulenko | 2016-01-06 23:19:51 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-01-06 23:19:51 +0100 |
commit | b28dc762df03662bee8c43e7fbd7472132dcd333 (patch) | |
tree | 0cf5bd8b0f1d3847ab7a72285814380579fd1c8f /engines/wage | |
parent | af691d995974be826a7b4784cc021b02a812d7fe (diff) | |
download | scummvm-rg350-b28dc762df03662bee8c43e7fbd7472132dcd333.tar.gz scummvm-rg350-b28dc762df03662bee8c43e7fbd7472132dcd333.tar.bz2 scummvm-rg350-b28dc762df03662bee8c43e7fbd7472132dcd333.zip |
WAGE: Fix warnings
Diffstat (limited to 'engines/wage')
-rw-r--r-- | engines/wage/wage.cpp | 8 | ||||
-rw-r--r-- | engines/wage/world.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp index 5fa5626129..7ea5bc13d2 100644 --- a/engines/wage/wage.cpp +++ b/engines/wage/wage.cpp @@ -234,19 +234,19 @@ void WageEngine::gameOver() { void WageEngine::performInitialSetup() { debug(5, "Resetting Objs: %d", _world->_orderedObjs.size()); - for (int i = 0; i < _world->_orderedObjs.size() - 1; i++) + for (uint i = 0; i < _world->_orderedObjs.size() - 1; i++) _world->move(_world->_orderedObjs[i], _world->_storageScene, true); _world->move(_world->_orderedObjs[_world->_orderedObjs.size() - 1], _world->_storageScene); debug(5, "Resetting Chrs: %d", _world->_orderedChrs.size()); - for (int i = 0; i < _world->_orderedChrs.size() - 1; i++) + for (uint i = 0; i < _world->_orderedChrs.size() - 1; i++) _world->move(_world->_orderedChrs[i], _world->_storageScene, true); _world->move(_world->_orderedChrs[_world->_orderedChrs.size() - 1], _world->_storageScene); debug(5, "Resetting Owners: %d", _world->_orderedObjs.size()); - for (int i = 0; i < _world->_orderedObjs.size(); i++) { + for (uint i = 0; i < _world->_orderedObjs.size(); i++) { Obj *obj = _world->_orderedObjs[i]; if (!obj->_sceneOrOwner.equalsIgnoreCase(STORAGESCENE)) { String location = obj->_sceneOrOwner; @@ -266,7 +266,7 @@ void WageEngine::performInitialSetup() { } bool playerPlaced = false; - for (int i = 0; i < _world->_orderedChrs.size(); i++) { + for (uint i = 0; i < _world->_orderedChrs.size(); i++) { Chr *chr = _world->_orderedChrs[i]; if (!chr->_initialScene.equalsIgnoreCase(STORAGESCENE)) { String key = chr->_initialScene; diff --git a/engines/wage/world.cpp b/engines/wage/world.cpp index f0d7c974a8..ab7b727260 100644 --- a/engines/wage/world.cpp +++ b/engines/wage/world.cpp @@ -435,7 +435,7 @@ Scene *World::getRandomScene() { } Scene *World::getSceneAt(int x, int y) { - for (int i = 0; i < _orderedScenes.size(); i++) { + for (uint i = 0; i < _orderedScenes.size(); i++) { Scene *scene = _orderedScenes[i]; if (scene != _storageScene && scene->_worldX == x && scene->_worldY == y) { |