Skip to content

Commit

Permalink
Vehicle: Fix remaining var init
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Nov 15, 2023
1 parent 90f3954 commit 36f0d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Entities/Vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ void VehicleInfo::SwitchSeat(Unit* passenger, uint8 seat)
// Remove passenger modifications of the old seat
RemoveSeatMods(passenger, seatEntry->m_flags);

float lx, ly, lz, lo = 0.f;
float lx = 0.f, ly = 0.f, lz = 0.f, lo = 0.f;
auto* creatureDisplayInfo = sCreatureDisplayInfoStore.LookupEntry(static_cast<Creature*>(m_owner)->GetNativeDisplayId());
float scale = creatureDisplayInfo->scale;
scale *= sCreatureModelDataStore.LookupEntry(creatureDisplayInfo->ModelId)->Scale;
Expand Down

0 comments on commit 36f0d14

Please sign in to comment.