forked from mirror/openmw-tes3mp
Make sure onPcEquip is also set for Equip script instruction
This commit is contained in:
parent
9653355cf1
commit
c04a8afc8b
1 changed files with 3 additions and 0 deletions
|
@ -171,6 +171,9 @@ namespace MWScript
|
||||||
|
|
||||||
MWWorld::ActionEquip action (*it);
|
MWWorld::ActionEquip action (*it);
|
||||||
action.execute(ptr);
|
action.execute(ptr);
|
||||||
|
|
||||||
|
if (ptr.getRefData().getHandle() == "player" && !ptr.getClass().getScript(ptr).empty())
|
||||||
|
ptr.getRefData().getLocals().setVarByInt(ptr.getClass().getScript(ptr), "onpcequip", 1);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue