mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
fixed server crash bug
This commit is contained in:
parent
b1e8f08ebe
commit
9c4264b491
5 changed files with 7 additions and 3 deletions
|
|
@ -156,7 +156,7 @@ ResponseCode Server_Game::checkJoin(const QString &_password, bool spectator)
|
|||
if (!spectatorsAllowed)
|
||||
return RespSpectatorsNotAllowed;
|
||||
} else if (gameStarted || (getPlayerCount() >= getMaxPlayers()))
|
||||
return RespContextError;
|
||||
return RespGameFull;
|
||||
|
||||
return RespOk;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue