Core/Command: Fix a crash when using wp show info pathid
Fix #530 thanks to @BarbzYHOOL for testing
This commit is contained in:
@@ -783,7 +783,7 @@ public:
|
|||||||
if (show == "info")
|
if (show == "info")
|
||||||
{
|
{
|
||||||
// Check if the user did specify a visual waypoint
|
// Check if the user did specify a visual waypoint
|
||||||
if (target && target->GetEntry() != VISUAL_WAYPOINT)
|
if (!target || target->GetEntry() != VISUAL_WAYPOINT)
|
||||||
{
|
{
|
||||||
handler->PSendSysMessage(LANG_WAYPOINT_VP_SELECT);
|
handler->PSendSysMessage(LANG_WAYPOINT_VP_SELECT);
|
||||||
handler->SetSentErrorMessage(true);
|
handler->SetSentErrorMessage(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user