From 185219d0879c1cac563b3f87d1f8fa034f80f695 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 26 Aug 2009 18:11:14 -0500 Subject: *Try to fix a crash caused by corpse. Thanks to new001. --HG-- branch : trunk --- src/game/ObjectGridLoader.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game/ObjectGridLoader.cpp') diff --git a/src/game/ObjectGridLoader.cpp b/src/game/ObjectGridLoader.cpp index db08590b354..6a11fe44f86 100644 --- a/src/game/ObjectGridLoader.cpp +++ b/src/game/ObjectGridLoader.cpp @@ -157,6 +157,8 @@ void LoadHelper(CellCorpseSet const& cell_corpses, CellPair &cell, CorpseMapType // TODO: this is a hack // corpse's map should be reset when the map is unloaded + // but it may still exist when the grid is unloaded but map is not + // in that case map == currMap obj->SetMap(map); AddObjectHelper(cell, m, count, map, obj); -- cgit v1.2.3