Fix Pet command with no arguments

Fix 
This commit is contained in:
image 2020-08-28 21:26:27 -04:00
parent 1de2ed29fa
commit 829b930f82

View file

@ -6656,6 +6656,10 @@ void Commands::Command_Pet(Client* client, Seperator* sep)
//LogWrite(MISC__TODO, 1, "Command", "TODO-Command: Pet Commands");
//client->Message(CHANNEL_COLOR_YELLOW, "Pets are not yet implemented.");
if (!sep || !sep->arg[0])
return; // should have sep->arg[0] filled
if (strcmp(sep->arg[0], "hide") == 0) {
// doing /pet hide will toggle the hide status on all the pets that can be hidden
Entity* pet = client->GetPlayer()->GetDeityPet();