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

c++11
Stanislav Bas 10 years ago
parent 5176e3d84b
commit 196be7283d

@ -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

Loading…
Cancel
Save