update comment

This commit is contained in:
Anthony Calosa
2023-04-27 18:49:47 +08:00
parent 397e1a3ff5
commit d9c59b80d1

View File

@@ -683,7 +683,8 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
}
final ImmutableList.Builder<Integer> choices = ImmutableList.builder();
// todo check for X cost or any max value for optional costs like multikicker, etc to determine the correct max value,
// fixes crash for word of command OutOfMemoryError since it will build from 0 to Integer.MAX_VALUE...
// fixes crash for word of command OutOfMemoryError when selecting a card with announce X or Multikicker since
// it will build from 0 to Integer.MAX_VALUE...
int size = max == Integer.MAX_VALUE ? 9 : max - min;
for (int i = 0; i <= size; i++) {
choices.add(Integer.valueOf(i + min));