diff --git a/src/engine/net/client/msg/ManageNPCMsg.java b/src/engine/net/client/msg/ManageNPCMsg.java index 30887bb3..699320a7 100644 --- a/src/engine/net/client/msg/ManageNPCMsg.java +++ b/src/engine/net/client/msg/ManageNPCMsg.java @@ -421,12 +421,12 @@ public class ManageNPCMsg extends ClientNetMsg { //Begin Item list for creation. writer.putInt(rollableSet.size()); - for (int ib : rollableSet) { - ItemBase item = ItemBase.getItemBase(ib); - ItemTemplate template = ItemTemplate.itemTemplates.get(ib); + for (int templateID : rollableSet) { + ItemBase item = ItemBase.getItemBase(templateID); + ItemTemplate template = ItemTemplate.itemTemplates.get(templateID); writer.put((byte) 1); writer.putInt(0); - writer.putInt(ib); //itemID + writer.putInt(templateID); //itemID writer.putInt(template.item_value); writer.putInt(600); writer.put((byte) 1);