mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-27 03:41:29 +00:00
[Bug Fix] Fix possible #proximity crash. (#1639)
This commit is contained in:
parent
62253cc016
commit
1c5f9f2e0f
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user