promoting was attempting to use players promotion class (which is null)

This commit is contained in:
2024-04-26 19:00:12 -05:00
parent f294e48140
commit 6cc94e076d
+1 -1
View File
@@ -2193,7 +2193,7 @@ public class PlayerCharacter extends AbstractCharacter {
public boolean setPromotionClass(int value) {
PromotionClass promotionClass = PromotionClass.GetPromtionClassFromCache(value);
this.absPromotionClass = mbEnums.ClassType.valueOf(this.getPromotionClass().getName());
this.absPromotionClass = mbEnums.ClassType.valueOf(promotionClass.getName());
if (promotionClass == null)
return false;