mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 22:15:32 +00:00
Check cell for null
This commit is contained in:
parent
441463327c
commit
7dff8d8fe2
1 changed files with 2 additions and 2 deletions
|
@ -1179,8 +1179,8 @@ namespace MWWorld
|
|||
}
|
||||
else
|
||||
{
|
||||
bool currCellActive = mWorldScene->isCellActive(*currCell);
|
||||
bool newCellActive = mWorldScene->isCellActive(*newCell);
|
||||
bool currCellActive = currCell && mWorldScene->isCellActive(*currCell);
|
||||
bool newCellActive = newCell && mWorldScene->isCellActive(*newCell);
|
||||
if (!currCellActive && newCellActive)
|
||||
{
|
||||
newPtr = currCell->moveTo(ptr, newCell);
|
||||
|
|
Loading…
Reference in a new issue