Check cell for null

0.6.3
Andrei Kortunov 7 years ago
parent 441463327c
commit 7dff8d8fe2

@ -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…
Cancel
Save