Fix NPE when custom code changes a player's HP (#458)

This commit is contained in:
CanIGetaPR
2019-05-01 13:24:27 -03:00
committed by Ronan Lana
parent 4df2a22422
commit 1213fff1ed
+3 -2
View File
@@ -8605,8 +8605,9 @@ public class MapleCharacter extends AbstractMapleCharacterObject {
}
}
};
map.registerCharacterStatUpdate(r);
if (map != null) {
map.registerCharacterStatUpdate(r);
}
}
private Pair<MapleStat, Integer> calcHpRatioUpdate(int newHp, int oldHp) {