1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-23 21:09:42 +00:00

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.
This commit is contained in:
scrawl 2016-05-25 21:37:56 +02:00
parent 4743030d4b
commit 5d4f58c828

View file

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