From 7445ddad0520fd9a55234a0c22dca56e4e7c00d0 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Wed, 10 Jun 2009 19:41:53 +0200 Subject: 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 --- src/game/OutdoorPvP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/OutdoorPvP.cpp') diff --git a/src/game/OutdoorPvP.cpp b/src/game/OutdoorPvP.cpp index c1e3c84e6f7..fd1cf87e6d6 100644 --- a/src/game/OutdoorPvP.cpp +++ b/src/game/OutdoorPvP.cpp @@ -80,7 +80,7 @@ bool OPvPCapturePoint::AddCapturePoint(uint32 entry, uint32 map, float x, float GameObjectInfo const* goinfo = objmgr.GetGameObjectInfo(entry); if(!goinfo || goinfo->type != GAMEOBJECT_TYPE_CAPTURE_POINT) { - sLog.outError("OutdoorPvP: GO %u is not capture point!", goinfo->id); + sLog.outError("OutdoorPvP: GO %u is not capture point!", entry); return false; } -- cgit v1.2.3