fix (cmd): caught sig 22 crash with delete cmd

This commit is contained in:
MDIC
2022-04-30 12:44:52 -04:00
parent d36281b46d
commit adbd9ecfd5

View File

@@ -165,7 +165,7 @@ public:
if (!player)
player = PlayerIdentifier::FromTarget(handler);
if (!player)
if (!player || !player->IsConnected())
{
handler->SendSysMessage(LANG_PLAYER_NOT_FOUND);
handler->SetSentErrorMessage(true);