Skip to content

Commit

Permalink
FIxed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
VoxLight committed Apr 28, 2023
1 parent 9bcbd8a commit 9910eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/game.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ int start_game(){
CURRENT_GAME->is_playing = true;
CURRENT_GAME->turn_order->tail->next = CURRENT_GAME->turn_order->head;
CURRENT_GAME->current_player_node = CURRENT_GAME->turn_order->head;
for (int i = 0; i < CURRENT_GAME->num_players; i++){
for (int i = 0; i < CURRENT_GAME->players->size; i++){
// Must check for null in the hash map.
if (CURRENT_GAME->players->table[i] == NULL) continue;
Player* player = CURRENT_GAME->players->table[i]->value;
Expand Down

0 comments on commit 9910eaf

Please sign in to comment.