diff options
author | QAston <none@none> | 2010-01-30 11:37:39 +0100 |
---|---|---|
committer | QAston <none@none> | 2010-01-30 11:37:39 +0100 |
commit | 23f589efa3caf01de0ad04d092e782ef5f349ee6 (patch) | |
tree | e95de57b6c8c3f6f60c98485ec4ce21399e178ae /src/game/Map.h | |
parent | 7209312044cf1d8b443ba0a6f2216089e50ff44e (diff) |
*Fix a crash in CORPSE_MAP_POSITION_RESPONSE handler.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Map.h')
-rw-r--r-- | src/game/Map.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/game/Map.h b/src/game/Map.h index df3a0fbaef1..52bf64cdbe2 100644 --- a/src/game/Map.h +++ b/src/game/Map.h @@ -369,12 +369,7 @@ class TRINITY_DLL_SPEC Map : public GridRefManager<NGridType>, public Trinity::O { if(!i_mapEntry) return false; - if(i_mapEntry->entrance_map < 0) - return false; - mapid = i_mapEntry->entrance_map; - x = i_mapEntry->entrance_x; - y = i_mapEntry->entrance_y; - return true; + return i_mapEntry->GetEntrancePos(mapid, x, y); } void AddObjectToRemoveList(WorldObject *obj); |