From f4f3219d61fe1935fa9454e4ef87873888480c54 Mon Sep 17 00:00:00 2001 From: EgzoT Date: Wed, 25 Oct 2017 23:25:02 +0200 Subject: [PATCH] [Probable bug] Double use function onAppear Method Map::addThing uses two times function onAppear for object Missile. First used in line 119, but then used again the same function in line 165. Without first function onAppear method Map::addThing work the same. --- src/client/map.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/client/map.cpp b/src/client/map.cpp index 3cae4dfe..b67ac1b7 100644 --- a/src/client/map.cpp +++ b/src/client/map.cpp @@ -116,7 +116,6 @@ void Map::addThing(const ThingPtr& thing, const Position& pos, int stackPos) } else { if(thing->isMissile()) { m_floorMissiles[pos.z].push_back(thing->static_self_cast()); - thing->onAppear(); } else if(thing->isAnimatedText()) { // this code will stack animated texts of the same color AnimatedTextPtr animatedText = thing->static_self_cast();