From 9fc0649fb6a03aec0f3b725373046cb8f325434b Mon Sep 17 00:00:00 2001 From: Bret Curtis Date: Sun, 14 Mar 2021 18:08:52 +0100 Subject: [PATCH] a better check to avoid the mCell assertion, so compariing nullptr to current cell will refurn false anyway --- apps/openmw/mwworld/scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwworld/scene.cpp b/apps/openmw/mwworld/scene.cpp index 31d83dce3..140d69e6b 100644 --- a/apps/openmw/mwworld/scene.cpp +++ b/apps/openmw/mwworld/scene.cpp @@ -449,7 +449,7 @@ namespace MWWorld const auto player = MWBase::Environment::get().getWorld()->getPlayerPtr(); // By default the player is grounded, with the scene fully loaded, we validate and correct this. - if (player.getCell() == cell) { // Only run once, during initial cell load. + if (player.mCell == cell) { // Only run once, during initial cell load. mPhysics->traceDown(player, player.getRefData().getPosition().asVec3(), 10.f); }