diff options
Diffstat (limited to 'src/core/zone.cc')
-rw-r--r-- | src/core/zone.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/zone.cc b/src/core/zone.cc index c298f78..8c74457 100644 --- a/src/core/zone.cc +++ b/src/core/zone.cc @@ -191,11 +191,11 @@ void Zone::remove(Entity *entity) } } -Entity *Zone::find_entity(Entity *entity) +Entity *Zone::find_entity(const Entity *entity) { for (Content::iterator it = zone_content.begin(); it != zone_content.end(); it++) { if ((*it) == entity) { - return entity; + return (*it); } } |