From cbc101b3b1c28c9394cd01fe24f2a2f95a81e239 Mon Sep 17 00:00:00 2001 From: Zukero Date: Tue, 24 Oct 2017 11:38:47 +0200 Subject: [PATCH] Fixed parsing issue in ActorCondition. The full round effect's visual effect was not read from the correct field, causing NPEs. --- .../gpl/rpg/atcontentstudio/model/gamedata/ActorCondition.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/gpl/rpg/atcontentstudio/model/gamedata/ActorCondition.java b/src/com/gpl/rpg/atcontentstudio/model/gamedata/ActorCondition.java index 6b69fed..b721ed4 100644 --- a/src/com/gpl/rpg/atcontentstudio/model/gamedata/ActorCondition.java +++ b/src/com/gpl/rpg/atcontentstudio/model/gamedata/ActorCondition.java @@ -208,7 +208,7 @@ public class ActorCondition extends JSONElement { this.full_round_effect.ap_boost_max = JSONElement.getInteger((Number) (((Map)fullRoundEffect.get("increaseCurrentAP")).get("max"))); this.full_round_effect.ap_boost_min = JSONElement.getInteger((Number) (((Map)fullRoundEffect.get("increaseCurrentAP")).get("min"))); } - String vfx = (String) roundEffect.get("visualEffectID"); + String vfx = (String) fullRoundEffect.get("visualEffectID"); this.full_round_effect.visual_effect = null; if (vfx != null) { try {