Fix another place where corpse is added twice to a grid.
This commit is contained in:
1 parent
07cf71fdd4
commit
077a2194ba
1 file changed
+6
@@ -126,6 +126,12 @@ void LoadHelper(CellCorpseSet const& cell_corpses, CellCoord &cell, CorpseMapTyp
|
|||||||
// in that case map == currMap
|
// in that case map == currMap
|
||||||
obj->SetMap(map);
|
obj->SetMap(map);
|
||||||
|
|
||||||
|
if (obj->IsInGrid())
|
||||||
|
{
|
||||||
|
obj->AddToWorld();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
AddObjectHelper(cell, m, count, map, obj);
|
AddObjectHelper(cell, m, count, map, obj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user