Skip to content

Commit

Permalink
WAGE: Fix unsigned/signed comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 6, 2016
1 parent 4a9bb72 commit f67b43e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/wage/entities.cpp
Expand Up @@ -229,7 +229,7 @@ Obj::Obj(String name, Common::SeekableReadStream *data) {

Chr *Obj::removeFromChr() {
if (_currentOwner != NULL) {
for (int i = _currentOwner->_inventory.size() - 1; i >= 0; i--)
for (int i = (int)_currentOwner->_inventory.size() - 1; i >= 0; i--)
if (_currentOwner->_inventory[i] == this)
_currentOwner->_inventory.remove_at(i);

Expand Down Expand Up @@ -358,7 +358,7 @@ WeaponArray *Chr::getWeapons() {
}

void Chr::wearObjs() {
for (int i = 0; i < _inventory.size(); i++)
for (uint i = 0; i < _inventory.size(); i++)
wearObjIfPossible(_inventory[i]);
}

Expand Down

0 comments on commit f67b43e

Please sign in to comment.