diff options
author | Eugene Sandulenko | 2016-01-07 00:02:00 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-01-07 00:02:00 +0100 |
commit | b9c256587b93edd791ae3425946a5e34a5890c1c (patch) | |
tree | ef813ce5cbfa6a1ba1178628f0375e58ada2eb0d /engines/wage | |
parent | f9ea23f6a5e0359aa5bad1be7a38d25922e35791 (diff) | |
download | scummvm-rg350-b9c256587b93edd791ae3425946a5e34a5890c1c.tar.gz scummvm-rg350-b9c256587b93edd791ae3425946a5e34a5890c1c.tar.bz2 scummvm-rg350-b9c256587b93edd791ae3425946a5e34a5890c1c.zip |
WAGE: Warning fixws
Diffstat (limited to 'engines/wage')
-rw-r--r-- | engines/wage/script.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp index b8b71ea550..c9b456b17c 100644 --- a/engines/wage/script.cpp +++ b/engines/wage/script.cpp @@ -59,7 +59,7 @@ Script::Script(Common::SeekableReadStream *data) : _data(data) { } Script::~Script() { - for (int i = 0; i < _scriptText.size(); i++) { + for (uint i = 0; i < _scriptText.size(); i++) { delete _scriptText[i]; } @@ -67,13 +67,13 @@ Script::~Script() { } void Script::print() { - for (int i = 0; i < _scriptText.size(); i++) { + for (uint i = 0; i < _scriptText.size(); i++) { debug(4, "%d [%04x]: %s", i, _scriptText[i]->offset, _scriptText[i]->line.c_str()); } } void Script::printLine(int offset) { - for (int i = 0; i < _scriptText.size(); i++) + for (uint i = 0; i < _scriptText.size(); i++) if (_scriptText[i]->offset >= offset) { debug(4, "%d [%04x]: %s", i, _scriptText[i]->offset, _scriptText[i]->line.c_str()); break; @@ -851,7 +851,7 @@ bool Script::evalClickCondition(Operand *lhs, const char *op, Operand *rhs) { } void Script::takeObj(Obj *obj) { - if (_world->_player->_inventory.size() >= _world->_player->_maximumCarriedObjects) { + if ((int)_world->_player->_inventory.size() >= _world->_player->_maximumCarriedObjects) { appendText("Your pack is full, you must drop something."); } else { _world->move(obj, _world->_player); @@ -991,7 +991,7 @@ Common::String *Script::getGroundItemsList(Scene *scene) { } void Script::appendObjNames(Common::String &str, Common::Array<Obj *> &objs) { - for (int i = 0; i < objs.size(); i++) { + for (uint i = 0; i < objs.size(); i++) { Obj *obj = objs[i]; if (!obj->_namePlural) @@ -1067,7 +1067,7 @@ enum { OPCODE }; -struct { +struct Mapping { const char *cmd; int type; } mapping[] = { |