diff options
Diffstat (limited to 'engines/wage/world.cpp')
-rw-r--r-- | engines/wage/world.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/wage/world.cpp b/engines/wage/world.cpp index 53fc1b4742..0e40e114b4 100644 --- a/engines/wage/world.cpp +++ b/engines/wage/world.cpp @@ -119,6 +119,8 @@ bool World::loadWorld(Common::MacResManager *resMan) { out.open("code.bin"); out.write(buf, res->size()); out.close(); + free(buf); + delete res; #endif if ((resArray = resMan->getResIDArray(MKTAG('G','C','O','D'))).size() == 0) @@ -415,7 +417,7 @@ Common::String *World::loadStringFromDITL(Common::MacResManager *resMan, int res } static bool invComparator(const Obj *l, const Obj *r) { - return l->_index < r->_index; + return l->_index < r->_index; } void World::move(Obj *obj, Chr *chr) { @@ -455,7 +457,7 @@ void World::move(Obj *obj, Scene *scene, bool skipSort) { } static bool chrComparator(const Chr *l, const Chr *r) { - return l->_index < r->_index; + return l->_index < r->_index; } void World::move(Chr *chr, Scene *scene, bool skipSort) { |