forked from mirror/openmw-tes3mp
Fix being able to activate magic bolts mid-flight
This commit is contained in:
parent
ac4c904e62
commit
9b9c39af7a
1 changed files with 3 additions and 0 deletions
|
@ -509,6 +509,9 @@ void OMW::Engine::activate()
|
||||||
if (ptr.isEmpty())
|
if (ptr.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (ptr.getClass().getName(ptr) == "") // objects without name presented to user can never be activated
|
||||||
|
return;
|
||||||
|
|
||||||
MWScript::InterpreterContext interpreterContext (&ptr.getRefData().getLocals(), ptr);
|
MWScript::InterpreterContext interpreterContext (&ptr.getRefData().getLocals(), ptr);
|
||||||
|
|
||||||
boost::shared_ptr<MWWorld::Action> action =
|
boost::shared_ptr<MWWorld::Action> action =
|
||||||
|
|
Loading…
Reference in a new issue