Skip to content

Commit

Permalink
fix(kotg): fixed int overflow on SPAWN command
Browse files Browse the repository at this point in the history
  • Loading branch information
CGjupoulton committed Dec 14, 2022
1 parent d6ab1fc commit 7694269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/codingame/game/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ private void doSpawn() {
Map<Coord, Integer> actualSpawns = Maps.newHashMap();

for (Action spawn : player.spawns) {
int spawnCost = Config.COST_UNIT * spawn.getAmount();
double spawnCost = ((double)Config.COST_UNIT) * spawn.getAmount();
Coord target = spawn.getCoord();

try {
Expand Down

0 comments on commit 7694269

Please sign in to comment.