diff --git a/rts/Rendering/UnitDrawer.cpp b/rts/Rendering/UnitDrawer.cpp index b92d4c1d44f..920e06818e0 100644 --- a/rts/Rendering/UnitDrawer.cpp +++ b/rts/Rendering/UnitDrawer.cpp @@ -2007,7 +2007,7 @@ void CUnitDrawer::RenderUnitLOSChanged(const CUnit* unit, int allyTeam, int newS if (newStatus & LOS_PREVLOS) { if (allyTeam == gu->myAllyTeam) { if (gameSetup->ghostedBuildings && unit->unitDef->IsImmobileUnit()) { - erase(liveGhostBuildings[MDL_TYPE(unit)], u); + insert_unique(liveGhostBuildings[MDL_TYPE(unit)], u); } } }