mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 09:32:45 +00:00
Fix missing null check
This commit is contained in:
parent
624046c558
commit
64d02f577e
@ -1046,7 +1046,7 @@ namespace MWPhysics
|
|||||||
bool PhysicsSystem::isOnGround(const MWWorld::Ptr &actor)
|
bool PhysicsSystem::isOnGround(const MWWorld::Ptr &actor)
|
||||||
{
|
{
|
||||||
Actor* physactor = getActor(actor);
|
Actor* physactor = getActor(actor);
|
||||||
return physactor->getOnGround();
|
return physactor && physactor->getOnGround();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PhysicsSystem::canMoveToWaterSurface(const MWWorld::ConstPtr &actor, const float waterlevel)
|
bool PhysicsSystem::canMoveToWaterSurface(const MWWorld::ConstPtr &actor, const float waterlevel)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user