mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-13 03:22:40 -04:00
Core: Random cleanup + compile fix
This commit is contained in:
@@ -62,27 +62,19 @@ void SmartWaypointMgr::LoadFromDB()
|
||||
y = fields[3].GetFloat();
|
||||
z = fields[4].GetFloat();
|
||||
|
||||
WayPoint* wp = new WayPoint(id, x, y, z);
|
||||
|
||||
if (last_entry != entry)
|
||||
{
|
||||
path = new WPPath;
|
||||
waypoint_map[entry] = new WPPath();
|
||||
last_id = 1;
|
||||
count++;
|
||||
}
|
||||
|
||||
if (last_id != id)
|
||||
{
|
||||
sLog->outErrorDb("SmartWaypointMgr::LoadFromDB: Path entry %u, unexpected point id %u, expected %u.", entry, id, last_id);
|
||||
}
|
||||
|
||||
last_id++;
|
||||
(*path)[id] = wp;
|
||||
(*waypoint_map[entry])[id] = new WayPoint(id, x, y, z);
|
||||
|
||||
if (last_entry != entry)
|
||||
{
|
||||
count++;
|
||||
waypoint_map[entry] = path;
|
||||
}
|
||||
last_entry = entry;
|
||||
total++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user