Fix shuffle (#3578)

This commit is contained in:
Rob Blanckaert 2019-02-10 18:06:30 -08:00 committed by Zach H
parent 5b197c072e
commit d49ec0088f

View file

@ -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");