mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
always get next game/replay id from database to avoid id collisions in multi-server mode
This commit is contained in:
parent
9706ecd98a
commit
c9a8429044
5 changed files with 38 additions and 25 deletions
|
|
@ -649,6 +649,9 @@ Response::ResponseCode Server_Player::cmdDeckSelect(const Command_DeckSelect &cm
|
|||
} else
|
||||
newDeck = new DeckList(QString::fromStdString(cmd.deck()));
|
||||
|
||||
if (!newDeck)
|
||||
return Response::RespInternalError;
|
||||
|
||||
delete deck;
|
||||
deck = newDeck;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue