forked from mirror/openmw-tes3mp
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:
parent
4743030d4b
commit
5d4f58c828
1 changed files with 3 additions and 6 deletions
|
@ -3178,15 +3178,12 @@ namespace MWWorld
|
||||||
{
|
{
|
||||||
breakInvisibility(actor);
|
breakInvisibility(actor);
|
||||||
|
|
||||||
if (mScriptsEnabled)
|
|
||||||
{
|
|
||||||
if (object.getRefData().activate())
|
if (object.getRefData().activate())
|
||||||
{
|
{
|
||||||
boost::shared_ptr<MWWorld::Action> action = (object.getClass().activate(object, actor));
|
boost::shared_ptr<MWWorld::Action> action = (object.getClass().activate(object, actor));
|
||||||
action->execute (actor);
|
action->execute (actor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
struct ResetActorsVisitor
|
struct ResetActorsVisitor
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue