aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/SmartScripts
diff options
context:
space:
mode:
authorkaelima <kaelima@live.se>2011-11-26 01:53:44 +0100
committerkaelima <kaelima@live.se>2011-11-26 01:53:44 +0100
commita9192656238863db86477c69684dcf35b536e053 (patch)
treedc9073fa372c2a814d594f6f4432441a06c10fc6 /src/server/game/AI/SmartScripts
parent754f6f29ac8af58938a170a4513cf640d8c2b92f (diff)
Core/DB: Fix character creation in Player::SaveToDB.
And some misc comments/whitespaces
Diffstat (limited to 'src/server/game/AI/SmartScripts')
-rw-r--r--src/server/game/AI/SmartScripts/SmartScriptMgr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp
index fc3db7a0fe6..011ed75205d 100644
--- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp
+++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp
@@ -68,10 +68,12 @@ void SmartWaypointMgr::LoadFromDB()
path = new WPPath;
last_id = 1;
}
+
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;