The proposed fix makes a private method w/ a boolean to determine if the consistency check for level has to be performed.
The public acceptLevelUpRewards() calls it w/ checkLevel=true.
The setStats() method used the private one w/ checkLevel=false.
This keeps the logic of setStats unaltered (as I didn't know the reasoning behind it).
Fixed issue: [Reference the issue number here, or remove if not a fix]
908
Changes made:
A new private method w/ boolean parameter to determine if the level check has to be done.
The proposed fix makes a private method w/ a boolean to determine if the consistency check for level has to be performed. The public acceptLevelUpRewards() calls it w/ checkLevel=true. The setStats() method used the private one w/ checkLevel=false. This keeps the logic of setStats unaltered (as I didn't know the reasoning behind it).
Fixed issue: [Reference the issue number here, or remove if not a fix]
908
Changes made: A new private method w/ boolean parameter to determine if the level check has to be done.