Skip to content

Commit 2f2df9c

Browse files
committed
Remove from active list when the element was removed from sectors
1 parent 2166da2 commit 2f2df9c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Client/mods/deathmatch/logic/CClientStreamer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,12 @@ void CClientStreamer::OnElementEnterSector(CClientStreamElement* pElement, CClie
709709
}
710710
}
711711
}
712+
else if (pPreviousSector && pPreviousSector->IsActivated())
713+
{
714+
// The element was removed from sectors.
715+
// Remove it from active elements too.
716+
m_ActiveElements.remove(pElement);
717+
}
712718
pElement->SetStreamSector(pSector);
713719
}
714720

0 commit comments

Comments
 (0)