diff options
author | megamage <none@none> | 2009-08-11 15:40:43 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-11 15:40:43 -0500 |
commit | 4267816fca55b137bf4c7e4e530816dc5c4e7d43 (patch) | |
tree | 23d9792209d48edfc163a0bc55abf29be0529f2d /src/game/ObjectGridLoader.cpp | |
parent | 98a19f21257e7c13651ce8f215d67f6223321061 (diff) |
*A temp fix of the crashes caused by corpses.
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectGridLoader.cpp')
-rw-r--r-- | src/game/ObjectGridLoader.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/ObjectGridLoader.cpp b/src/game/ObjectGridLoader.cpp index c55bf0106b0..2399019237f 100644 --- a/src/game/ObjectGridLoader.cpp +++ b/src/game/ObjectGridLoader.cpp @@ -177,6 +177,10 @@ void LoadHelper(CellCorpseSet const& cell_corpses, CellPair &cell, CorpseMapType if(!obj) continue; + // TODO: this is a hack + // corpse's map should be reset when the map is unloaded + obj->SetMap(map); + AddObjectHelper(cell, m, count, map, obj); } } |