We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68dd629 commit 0b2946bCopy full SHA for 0b2946b
Core/src/main/java/de/tor/tribes/io/TroopAmountElement.java
@@ -133,12 +133,15 @@ public int getTroopsAmount(Village pVillage) {
133
} else if (pVillage == null) {
134
//no village given with fixed amount, just return the Amount
135
return wanted;
136
+ } else if (availableAmounts == null) {
137
+ //no troops read just insert what we got
138
+ return wanted;
139
} else {
140
//return max. avail count
141
return availableAmount;
142
}
143
- throw new RuntimeException("The code must not come to this Point");
144
+ throw new RuntimeException("The code must not come to this Point " + val.getClass().getCanonicalName() + " / " + val);
145
146
147
@Override
0 commit comments