Core: More warning fixes
This commit is contained in:
@@ -3417,8 +3417,7 @@ void AuraEffect::HandleAuraTransform(AuraApplication const * aurApp, uint8 mode,
|
||||
team = target->ToPlayer()->GetTeam();
|
||||
|
||||
uint32 displayID = sObjectMgr->ChooseDisplayId(team, ci);
|
||||
|
||||
CreatureModelInfo const *minfo = sObjectMgr->GetCreatureModelRandomGender(displayID);
|
||||
sObjectMgr->GetCreatureModelRandomGender(&displayID);
|
||||
|
||||
target->SetUInt32Value(UNIT_FIELD_MOUNTDISPLAYID, displayID);
|
||||
}
|
||||
@@ -3878,7 +3877,7 @@ void AuraEffect::HandleAuraMounted(AuraApplication const * aurApp, uint8 mode, b
|
||||
team = target->ToPlayer()->GetTeam();
|
||||
|
||||
uint32 displayID = sObjectMgr->ChooseDisplayId(team, ci);
|
||||
CreatureModelInfo const *minfo = sObjectMgr->GetCreatureModelRandomGender(displayID);
|
||||
sObjectMgr->GetCreatureModelRandomGender(&displayID);
|
||||
|
||||
//some spell has one aura of mount and one of vehicle
|
||||
for (uint32 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||
@@ -6154,7 +6153,7 @@ void AuraEffect::HandleAuraDummy(AuraApplication const * aurApp, uint8 mode, boo
|
||||
team = target->ToPlayer()->GetTeam();
|
||||
|
||||
uint32 displayID = sObjectMgr->ChooseDisplayId(team, creatureInfo);
|
||||
CreatureModelInfo const *minfo = sObjectMgr->GetCreatureModelRandomGender(displayID);
|
||||
sObjectMgr->GetCreatureModelRandomGender(&displayID);
|
||||
|
||||
target->SetUInt32Value(UNIT_FIELD_MOUNTDISPLAYID, displayID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user