mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-14 06:40:40 +00:00
Reset an activated reference after activation's exectution (Fix #1738)
This commit is contained in:
parent
5176e3d84b
commit
196be7283d
@ -505,7 +505,10 @@ namespace MWScript
|
|||||||
boost::shared_ptr<MWWorld::Action> action = (ptr.getClass().activate(ptr, actor));
|
boost::shared_ptr<MWWorld::Action> action = (ptr.getClass().activate(ptr, actor));
|
||||||
action->execute (actor);
|
action->execute (actor);
|
||||||
if (mActivated == ptr)
|
if (mActivated == ptr)
|
||||||
|
{
|
||||||
mActivationHandled = true;
|
mActivationHandled = true;
|
||||||
|
mActivated = MWWorld::Ptr();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
float InterpreterContext::getSecondsPassed() const
|
float InterpreterContext::getSecondsPassed() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user