- Fixed possible NPE in getUniqueTargets.

This commit is contained in:
Sloth
2013-02-27 19:00:49 +00:00
parent 0ffe871f98
commit 74a31e137e

View File

@@ -243,7 +243,7 @@ public class TargetSelection {
SpellAbility child = ability;
while (child instanceof AbilitySub) {
child = ((AbilitySub) child).getParent();
if (child.getTarget() != null) {
if (child != null && child.getTarget() != null) {
targets.addAll(child.getTarget().getTargets());
}
}