From 1c5f9f2e0f1f866deb42fea3ca2453bfab4edcdf Mon Sep 17 00:00:00 2001 From: Kinglykrab <89047260+Kinglykrab@users.noreply.github.com> Date: Sun, 24 Oct 2021 17:50:43 -0400 Subject: [PATCH] [Bug Fix] Fix possible #proximity crash. (#1639) --- zone/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/command.cpp b/zone/command.cpp index be06bd9b6..723e96333 100755 --- a/zone/command.cpp +++ b/zone/command.cpp @@ -6097,7 +6097,7 @@ void command_push(Client *c, const Seperator *sep) void command_proximity(Client *c, const Seperator *sep) { - if (!c->GetTarget() && !c->GetTarget()->IsNPC()) { + if (!c->GetTarget() || (c->GetTarget() && !c->GetTarget()->IsNPC())) { c->Message(Chat::White, "You must target an NPC"); return; }