1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-10 12:39:53 +00:00

Reset an activated reference after activation's exectution (Fix #1738)

This commit is contained in:
Stanislav Bas 2015-05-19 21:39:17 +03:00
parent 5176e3d84b
commit 196be7283d

View File

@ -505,7 +505,10 @@ namespace MWScript
boost::shared_ptr<MWWorld::Action> action = (ptr.getClass().activate(ptr, actor));
action->execute (actor);
if (mActivated == ptr)
{
mActivationHandled = true;
mActivated = MWWorld::Ptr();
}
}
float InterpreterContext::getSecondsPassed() const