Core: Some optimizations
- Declare some functions const - Fix some mem leak - Fix some resource leak - Remove unused variables and functions - Remove duplicate functions - Reduce the scope of some variables - Remove unused file --HG-- branch : trunk
This commit is contained in:
@@ -5858,13 +5858,13 @@ void ObjectMgr::GetTaxiPath(uint32 source, uint32 destination, uint32 &path, uin
|
||||
|
||||
uint32 ObjectMgr::GetTaxiMountDisplayId(uint32 id, uint32 team, bool allowed_alt_team /* = false */)
|
||||
{
|
||||
uint32 mount_entry = 0;
|
||||
uint32 mount_id = 0;
|
||||
|
||||
// select mount creature id
|
||||
TaxiNodesEntry const* node = sTaxiNodesStore.LookupEntry(id);
|
||||
if (node)
|
||||
{
|
||||
uint32 mount_entry = 0;
|
||||
if (team == ALLIANCE)
|
||||
mount_entry = node->MountCreatureID[1];
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user