1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Make sure onPcEquip is also set for Equip script instruction

This commit is contained in:
scrawl 2014-01-18 10:51:52 +01:00
parent 9653355cf1
commit c04a8afc8b

View File

@ -171,6 +171,9 @@ namespace MWScript
MWWorld::ActionEquip action (*it);
action.execute(ptr);
if (ptr.getRefData().getHandle() == "player" && !ptr.getClass().getScript(ptr).empty())
ptr.getRefData().getLocals().setVarByInt(ptr.getClass().getScript(ptr), "onpcequip", 1);
}
};