diff options
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) { |