Fix being unable to activate objects when scripts are disabled

The if statement was a leftover of the previous activate implementation and is no longer needed.
coverity_scan^2
scrawl 9 years ago
parent 4743030d4b
commit 5d4f58c828

@ -3178,13 +3178,10 @@ namespace MWWorld
{
breakInvisibility(actor);
if (mScriptsEnabled)
if (object.getRefData().activate())
{
if (object.getRefData().activate())
{
boost::shared_ptr<MWWorld::Action> action = (object.getClass().activate(object, actor));
action->execute (actor);
}
boost::shared_ptr<MWWorld::Action> action = (object.getClass().activate(object, actor));
action->execute (actor);
}
}

Loading…
Cancel
Save