1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-03 15:45:32 +00:00

[Client] Add another validity check to CellController::updateLocal()

This commit is contained in:
David Cernat 2020-08-11 12:57:09 +02:00
parent e4529af0a7
commit c6852f49ba

View file

@ -39,7 +39,7 @@ void CellController::updateLocal(bool forceUpdate)
{
mwmp::Cell *mpCell = it->second;
if (!mpCell->getCellStore() || !world->isCellActive(*mpCell->getCellStore()->getCell()))
if (mpCell->getCellStore() == nullptr || mpCell->getCellStore()->getCell() == nullptr || !world->isCellActive(*mpCell->getCellStore()->getCell()))
{
mpCell->uninitializeLocalActors();
mpCell->uninitializeDedicatedActors();