From 1145eb7e42abe315e9e111f648146572f1533b02 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Thu, 9 Feb 2012 05:52:52 -0200 Subject: [PATCH] fix creature draw bug --- src/otclient/core/map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/otclient/core/map.cpp b/src/otclient/core/map.cpp index c72cf95a..ef30cc65 100644 --- a/src/otclient/core/map.cpp +++ b/src/otclient/core/map.cpp @@ -174,6 +174,8 @@ bool Map::removeThing(const ThingPtr& thing) if(!thing) return false; + notificateTileUpdateToMapViews(thing->getPosition()); + if(MissilePtr missile = thing->asMissile()) { int z = missile->getPosition().z; auto it = std::find(m_floorMissiles[z].begin(), m_floorMissiles[z].end(), missile); @@ -196,8 +198,6 @@ bool Map::removeThing(const ThingPtr& thing) } else if(TilePtr tile = thing->getTile()) return tile->removeThing(thing); - notificateTileUpdateToMapViews(thing->getPosition()); - return false; }