Skip to content

Commit

Permalink
Fix save when available points is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
epinter committed Aug 1, 2019
1 parent ee98e9e commit 0f6928d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ public void saveCharHandler() throws Exception {
if (manaOld != currentMana.get() && currentMana.get() > 0) {
playerData.setMana(currentMana.get());
}
if (modifierOld != currentAvail.get() && currentAvail.get() > 0) {
if (modifierOld != currentAvail.get() && currentAvail.get() >= 0) {
playerData.setModifierPoints(currentAvail.get());
}
if (DBG) System.out.println("returning savegame task");
Expand Down

0 comments on commit 0f6928d

Please sign in to comment.