aboutsummaryrefslogtreecommitdiff
path: root/src/game/WaypointManager.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-06-10 19:41:53 +0200
committerMachiavelli <none@none>2009-06-10 19:41:53 +0200
commit7445ddad0520fd9a55234a0c22dca56e4e7c00d0 (patch)
treee28cc60fd95bc9c8c8cb0812089301fc3c484dce /src/game/WaypointManager.cpp
parentb0fa2172e3df7bd098df5f6144d8231e1d98c4d9 (diff)
Minor code cleanup:
* Fix possible crash in OPvPCapturePoint::AddCapturePoint due to using null pointer in log output * Correct damage for Gore (arithmetic operator has precedence over question operator) * Correct SQL query that WaypointManager uses to count record number * Declare Aura *aur in OPvPWintergrasp::HandleKill only once and then evaluate value instead of declaring twice and then evaluating --HG-- branch : trunk
Diffstat (limited to 'src/game/WaypointManager.cpp')
-rw-r--r--src/game/WaypointManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/WaypointManager.cpp b/src/game/WaypointManager.cpp
index 26be14d89fa..382f70a19ad 100644
--- a/src/game/WaypointManager.cpp
+++ b/src/game/WaypointManager.cpp
@@ -34,7 +34,7 @@ void WaypointStore::Free()
void WaypointStore::Load()
{
- QueryResult *result = WorldDatabase.PQuery("SELECT MAX(`id`) FROM `waypoint_data`");
+ QueryResult *result = WorldDatabase.PQuery("SELECT COUNT(`id`) FROM `waypoint_data`");
if(!result)
{
sLog.outError("an error occured while loading the table `waypoint_data` (maybe it doesn't exist ?)");