mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-28 08:12:27 +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)
|
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");
|
c->Message(Chat::White, "You must target an NPC");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user