*A temp fix of the crashes caused by corpses.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-08-11 15:40:43 -05:00
1 parent 98a19f2125
commit 4267816fca
2 files changed
+6 -2

No files matched your search

+4
View File
@@ -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);
}
}