Core/Misc: Fixed some issues found by Coverity Scan

This commit is contained in:
Shauren committed 2013-08-01 21:31:11 +02:00
1 parent ab6be8c603
commit ac10589eda
21 files changed
+108 -114

No files matched your search

+1 -1
View File
@@ -796,7 +796,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);