Merge pull request #9977 from dekvall/xp-tracker-interval

xptracker: fix goals set from level 1
This commit is contained in:
Tomas Slusny
2019-10-08 10:12:19 +02:00
committed by GitHub

View File

@@ -220,7 +220,7 @@ class XpStateSingle
// Determine XP goals, overall has no goals
if (skill != Skill.OVERALL)
{
if (goalStartXp <= 0 || currentXp > goalEndXp)
if (goalStartXp < 0 || currentXp > goalEndXp)
{
startLevelExp = Experience.getXpForLevel(Experience.getLevelForXp((int) currentXp));
}