mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-06 17:15:35 +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
1 changed files with 1 additions and 1 deletions
|
@ -449,7 +449,7 @@ namespace MWWorld
|
||||||
const auto player = MWBase::Environment::get().getWorld()->getPlayerPtr();
|
const auto player = MWBase::Environment::get().getWorld()->getPlayerPtr();
|
||||||
|
|
||||||
// By default the player is grounded, with the scene fully loaded, we validate and correct this.
|
// 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);
|
mPhysics->traceDown(player, player.getRefData().getPosition().asVec3(), 10.f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue