Make sure onPcEquip is also set for Equip script instruction

actorid
scrawl 11 years ago
parent 9653355cf1
commit c04a8afc8b

@ -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);
}
};

Loading…
Cancel
Save