Fix shuffle (#3578)
This commit is contained in:
parent
5b197c072e
commit
d49ec0088f
1 changed files with 1 additions and 1 deletions
|
@ -852,7 +852,7 @@ Server_Player::cmdShuffle(const Command_Shuffle &cmd, ResponseContainer & /*rc*/
|
||||||
if (conceded)
|
if (conceded)
|
||||||
return Response::RespContextError;
|
return Response::RespContextError;
|
||||||
|
|
||||||
if (cmd.zone_name() != "deck")
|
if (cmd.has_zone_name() && cmd.zone_name() != "deck")
|
||||||
return Response::RespFunctionNotAllowed;
|
return Response::RespFunctionNotAllowed;
|
||||||
|
|
||||||
Server_CardZone *zone = zones.value("deck");
|
Server_CardZone *zone = zones.value("deck");
|
||||||
|
|
Loading…
Reference in a new issue