Core/Quest: Fix issues reported by static analysis

This commit is contained in:
jackpoz
2015-12-06 21:02:52 +01:00
parent e60bbaa7d3
commit f1f4005ad8
6 changed files with 20 additions and 7 deletions

View File

@@ -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);