Default turn = 1 if none set

This commit is contained in:
Seravy
2018-02-18 20:22:17 +01:00
parent 67f9be5d4d
commit 97177e379e

View File

@@ -398,6 +398,8 @@ public abstract class GameState {
if (categoryName.equals("turn")) { if (categoryName.equals("turn")) {
turn = Integer.parseInt(categoryValue); turn = Integer.parseInt(categoryValue);
} else {
turn = 1;
} }
if (categoryName.endsWith("life")) { if (categoryName.endsWith("life")) {
if (isHuman) if (isHuman)