From e91960040cb7a7c840e91d5f311ac50b6c18d6ca Mon Sep 17 00:00:00 2001 From: Filip Maj Date: Thu, 6 Jun 2019 02:14:49 -0400 Subject: [PATCH] Fixed equip command breaking due to gearset referencing slot not actual item in slot. --- data/scripts/commands/EquipCommand.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/scripts/commands/EquipCommand.lua b/data/scripts/commands/EquipCommand.lua index 576a5f8b..636f3124 100644 --- a/data/scripts/commands/EquipCommand.lua +++ b/data/scripts/commands/EquipCommand.lua @@ -85,7 +85,7 @@ function loadGearset(player, classId) for slot = 0, 34 do if (slot ~= EQUIPSLOT_MAINHAND and slot ~= EQUIPSLOT_UNDERSHIRT and slot ~= EQUIPSLOT_UNDERGARMENT) then - itemAtSlot = slot; + itemAtSlot = player:GetEquipment():GetItemAtSlot(slot); itemAtGearsetSlot = gearset[slot]; if (itemAtSlot ~= nil or itemAtGearsetSlot ~= nil) then