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:
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…
x
Reference in New Issue
Block a user