aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2015-12-06 21:02:52 +0100
committerjackpoz <giacomopoz@gmail.com>2015-12-06 21:37:58 +0100
commitf1f4005ad8a17ea5fdd2b66f8ed3d0bd7c4c1efb (patch)
tree3e1c1779951d51f366c27e0ae0aeabd618c6380e /src/server/scripts
parente60bbaa7d39c690a759c96ee83ab8311e700a8e1 (diff)
Core/Quest: Fix issues reported by static analysis
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Commands/cs_wp.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/scripts/Commands/cs_wp.cpp b/src/server/scripts/Commands/cs_wp.cpp
index b35e71dbd50..30ee8254f72 100644
--- a/src/server/scripts/Commands/cs_wp.cpp
+++ b/src/server/scripts/Commands/cs_wp.cpp
@@ -374,6 +374,12 @@ public:
if (show == "del")
{
+ if (!arg_id)
+ {
+ handler->SendSysMessage("|cffff33ffERROR: Waypoint script guid not present.|r");
+ return true;
+ }
+
id = atoi(arg_id);
stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_WAYPOINT_SCRIPT_ID_BY_GUID);