diff options
author | Machiavelli <none@none> | 2009-06-10 19:41:53 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-06-10 19:41:53 +0200 |
commit | 7445ddad0520fd9a55234a0c22dca56e4e7c00d0 (patch) | |
tree | e28cc60fd95bc9c8c8cb0812089301fc3c484dce /src/game/WaypointManager.cpp | |
parent | b0fa2172e3df7bd098df5f6144d8231e1d98c4d9 (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.cpp | 2 |
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 ?)"); |