Closed CyberShadow closed 7 years ago
calculateLevelCost returns null when the given level is above the maximum one.
Avoid subtracting from null by omitting rendering of experience points when the hero level has reached its maximum value.
Thanks! I can confidently state that I have never once hit the maximum level of a hero, so there's not surprise that bugs lurk there. :)
calculateLevelCost returns null when the given level is above the maximum one.
Avoid subtracting from null by omitting rendering of experience points when the hero level has reached its maximum value.