diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index cc180f04..79449a1c 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -354,8 +354,9 @@ public class ItemTemplate { if (powerGrantsArray.isEmpty() == false) { - for (Object grantEntry : powerGrantsArray) { - JSONObject powerGrant = (JSONObject) grantEntry; + for (Object grantArrayEntry : powerGrantsArray) { + JSONObject powerGrantEntry = (JSONObject) grantArrayEntry; + JSONObject powerGrant = (JSONObject) powerGrantEntry.get("granted_powers"); for (Object key : powerGrant.keySet()) { String powerString = (String) key;