mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00:00
Fix broken getCollidingPc / getCollidingActor (cppcheck)
This commit is contained in:
parent
97df7c9b22
commit
603e558fb7
@ -617,7 +617,7 @@ namespace MWScript
|
|||||||
virtual void execute (Interpreter::Runtime& runtime)
|
virtual void execute (Interpreter::Runtime& runtime)
|
||||||
{
|
{
|
||||||
MWWorld::Ptr ptr = R()(runtime);
|
MWWorld::Ptr ptr = R()(runtime);
|
||||||
runtime.push (MWBase::Environment::get().getWorld()->getPlayerStandingOn(ptr));
|
runtime.push (MWBase::Environment::get().getWorld()->getPlayerCollidingWith(ptr));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -629,7 +629,7 @@ namespace MWScript
|
|||||||
virtual void execute (Interpreter::Runtime& runtime)
|
virtual void execute (Interpreter::Runtime& runtime)
|
||||||
{
|
{
|
||||||
MWWorld::Ptr ptr = R()(runtime);
|
MWWorld::Ptr ptr = R()(runtime);
|
||||||
runtime.push (MWBase::Environment::get().getWorld()->getActorStandingOn(ptr));
|
runtime.push (MWBase::Environment::get().getWorld()->getActorCollidingWith(ptr));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user