summaryrefslogtreecommitdiff
path: root/src/scripts/Commands/cs_wp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/Commands/cs_wp.cpp')
-rw-r--r--src/scripts/Commands/cs_wp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts/Commands/cs_wp.cpp b/src/scripts/Commands/cs_wp.cpp
index cdafdc2f27..870fb95e52 100644
--- a/src/scripts/Commands/cs_wp.cpp
+++ b/src/scripts/Commands/cs_wp.cpp
@@ -783,7 +783,7 @@ public:
if (show == "info")
{
// 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->SetSentErrorMessage(true);