1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-09-01 17:14:15 -04:00

Fix an off-by-one error in load_game()

Obviously no one has tried to load a game with MAX_PLAYERS (8) before!
This commit is contained in:
John Zaitseff 2012-03-29 20:05:51 +11:00
parent e92fa804ba
commit 2a5bbc456c

View File

@ -346,7 +346,7 @@ bool load_game (int num)
load_game_read_int(n, n == MAX_Y);
load_game_read_int(max_turn, max_turn >= 1);
load_game_read_int(turn_number, turn_number >= 1 && turn_number <= max_turn);
load_game_read_int(number_players, number_players >= 1 && number_players < MAX_PLAYERS);
load_game_read_int(number_players, number_players >= 1 && number_players <= MAX_PLAYERS);
load_game_read_int(current_player, current_player >= 0 && current_player < number_players);
load_game_read_int(first_player, first_player >= 0 && first_player < number_players);
load_game_read_int(n, n == MAX_COMPANIES);