*Fix a crash in CORPSE_MAP_POSITION_RESPONSE handler.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-01-30 11:37:39 +01:00
parent 7209312044
commit 23f589efa3
3 changed files with 18 additions and 13 deletions
+1 -6
View File
@@ -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);