Do proper sanitytesting for waypoint scriptloading - thanks to Azazel for the heads up

Closes issues #2888

--HG--
branch : trunk
This commit is contained in:
click
2010-07-08 03:03:10 +02:00
parent e58ca4d363
commit 668de35042
+1 -1
View File
@@ -4868,7 +4868,7 @@ void ObjectMgr::LoadWaypointScripts()
for (ScriptMapMap::const_iterator itr = sWaypointScripts.begin(); itr != sWaypointScripts.end(); ++itr)
{
QueryResult_AutoPtr query = WorldDatabase.PQuery("SELECT * FROM waypoint_scripts WHERE id = %u", itr->first);
QueryResult_AutoPtr query = WorldDatabase.PQuery("SELECT * FROM waypoint_data WHERE action = %u", itr->first);
if (!query || !query->GetRowCount())
sLog.outErrorDb("There is no waypoint which links to the waypoint script %u", itr->first);
}