FAForever / server

The servercode for the Forged Alliance Forever lobby
http://www.faforever.com
GNU General Public License v3.0
67 stars 62 forks source link

Set game_id_counter to 0 if no games #896

Closed Brutus5000 closed 2 years ago

Brutus5000 commented 2 years ago

If the game_stats table is empty, the creation of new games will fail. Picking the max(id) of game_stats is null, but incrementing null by 1 throws an error.