diff options
author | Spp <none@none> | 2010-04-19 17:03:10 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-04-19 17:03:10 +0200 |
commit | be01821050dd30ff65e89b347d528efb20aba028 (patch) | |
tree | 6d33e686bf1c5d664a7104a208a4e057c6337b1e /src/game/ObjectMgr.cpp | |
parent | f74e969a069646eca6227bdede974223c07e9c94 (diff) |
More warning removal (Some code modifications and cleanup when needed)
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r-- | src/game/ObjectMgr.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 0090f6dd6b2..0ce50659fb1 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -3392,7 +3392,7 @@ void ObjectMgr::LoadArenaTeams() do { - Field *fields = result->Fetch(); + //Field *fields = result->Fetch(); bar.step(); ++count; @@ -5308,7 +5308,7 @@ void ObjectMgr::LoadAreaTriggerScripts() uint32 ObjectMgr::GetNearestTaxiNode(float x, float y, float z, uint32 mapid, uint32 team) { bool found = false; - float dist; + float dist = 10000; uint32 id = 0; for (uint32 i = 1; i < sTaxiNodesStore.GetNumRows(); ++i) @@ -5394,7 +5394,8 @@ uint32 ObjectMgr::GetTaxiMountDisplayId(uint32 id, uint32 team, bool allowed_alt CreatureInfo const *mount_info = GetCreatureTemplate(mount_entry); if (mount_info) { - if (! (mount_id = mount_info->GetRandomValidModelId())) + mount_id = mount_info->GetRandomValidModelId(); + if (!mount_id) { sLog.outErrorDb("No displayid found for the taxi mount with the entry %u! Can't load it!", mount_entry); return false; @@ -5539,12 +5540,12 @@ WorldSafeLocsEntry const *ObjectMgr::GetClosestGraveYard(float x, float y, float // at corpse map bool foundNear = false; - float distNear; + float distNear = 10000; WorldSafeLocsEntry const* entryNear = NULL; // at entrance map for corpse map bool foundEntr = false; - float distEntr; + float distEntr = 10000; WorldSafeLocsEntry const* entryEntr = NULL; // some where other |