mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
a better check to avoid the mCell assertion, so compariing nullptr to current cell will refurn false anyway
This commit is contained in:
parent
49545e6d29
commit
9fc0649fb6
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user