mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 19:49:41 +00:00
Reset an activated reference after activation's exectution (Fix #1738)
This commit is contained in:
parent
5176e3d84b
commit
196be7283d
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue