mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-05 22:51:37 +00:00
[Client] Add cellStore validity check to CellController::updateLocal()
This commit is contained in:
parent
94dc6f422a
commit
bcb7568ac6
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ void CellController::updateLocal(bool forceUpdate)
|
||||||
{
|
{
|
||||||
mwmp::Cell *mpCell = it->second;
|
mwmp::Cell *mpCell = it->second;
|
||||||
|
|
||||||
if (!world->isCellActive(*mpCell->getCellStore()->getCell()))
|
if (!mpCell->getCellStore() || !world->isCellActive(*mpCell->getCellStore()->getCell()))
|
||||||
{
|
{
|
||||||
mpCell->uninitializeLocalActors();
|
mpCell->uninitializeLocalActors();
|
||||||
mpCell->uninitializeDedicatedActors();
|
mpCell->uninitializeDedicatedActors();
|
||||||
|
|
Loading…
Reference in a new issue