Core/WaypointMgr: Fixed crashes when loading data with waypoint_data.id=0 and fixed memory leaks in .wp reload command

This commit is contained in:
Shauren
2011-05-24 23:13:47 +02:00
parent d9390bdd09
commit cb608283b2
4 changed files with 64 additions and 69 deletions
+1 -1
View File
@@ -194,7 +194,7 @@ public:
return false;
handler->PSendSysMessage("%s%s|r|cff00ffff%u|r", "|cff00ff00", "Loading Path: ", id);
sWaypointMgr->UpdatePath(id);
sWaypointMgr->ReloadPath(id);
return true;
}
static bool HandleWpUnLoadCommand(ChatHandler* handler, const char* /*args*/)