Skip to content

Commit

Permalink
WAGE: Implement getMagicalObjects()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Feb 14, 2016
1 parent da0611e commit 0e34bff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engines/wage/entities.cpp
Expand Up @@ -437,7 +437,9 @@ ObjArray *Chr::getWeapons(bool includeMagic) {
ObjArray *Chr::getMagicalObjects() {
ObjArray *list = new ObjArray;

warning("STUB: getMagicalObjects");
for (uint i = 0; i < _inventory.size(); i++)
if (_inventory[i]->_type == Obj::MAGICAL_OBJECT)
list->push_back(_inventory[i]);

return list;
}
Expand Down

0 comments on commit 0e34bff

Please sign in to comment.