aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/world.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-02-14 13:52:05 +0100
committerEugene Sandulenko2016-02-14 17:13:21 +0100
commitc0697f7f2b7bea2b6e4dafb6fa5ac03aa0681638 (patch)
tree08e6a959ee264e10afacf1a5d3311766826e0e54 /engines/wage/world.cpp
parentc5a01f3f38aae04cf114db68c27aaadfbe558a88 (diff)
downloadscummvm-rg350-c0697f7f2b7bea2b6e4dafb6fa5ac03aa0681638.tar.gz
scummvm-rg350-c0697f7f2b7bea2b6e4dafb6fa5ac03aa0681638.tar.bz2
scummvm-rg350-c0697f7f2b7bea2b6e4dafb6fa5ac03aa0681638.zip
WAGE: const goodness
Diffstat (limited to 'engines/wage/world.cpp')
-rw-r--r--engines/wage/world.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wage/world.cpp b/engines/wage/world.cpp
index daa2de9867..4a8e5fb741 100644
--- a/engines/wage/world.cpp
+++ b/engines/wage/world.cpp
@@ -385,7 +385,7 @@ Common::String *World::loadStringFromDITL(Common::MacResManager *resMan, int res
return NULL;
}
-bool InvComparator(Obj *l, Obj *r) {
+static bool InvComparator(const Obj *l, const Obj *r) {
return l->_index < r->_index;
}
@@ -402,7 +402,7 @@ void World::move(Obj *obj, Chr *chr) {
_engine->onMove(obj, from, chr);
}
-bool ObjComparator(Obj *o1, Obj *o2) {
+static bool ObjComparator(const Obj *o1, const Obj *o2) {
bool o1Immobile = (o1->_type == Obj::IMMOBILE_OBJECT);
bool o2Immobile = (o2->_type == Obj::IMMOBILE_OBJECT);
if (o1Immobile == o2Immobile) {