Skip to content

Commit

Permalink
Vehicle: Fix missing init for all vars
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Nov 15, 2023
1 parent 49f511f commit 90f3954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Entities/Vehicle.cpp
Expand Up @@ -300,7 +300,7 @@ void VehicleInfo::Board(Unit* passenger, uint8 seat)
transport->RemovePassenger(passenger);

// Calculate passengers local position
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

1 comment on commit 90f3954

@insunaa
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also forgot it in line 407

Please sign in to comment.