fix(Script/Vehicles): The next player entering Salvaged Siege Engine … (#19674)

fix(Script/Vehicles): The next player entering Salvaged Siege Engine should control turret if it's not occupied.
This commit is contained in:
Yunfan Li
2024-08-19 01:28:56 +08:00
committed by GitHub
parent a0689fb4ef
commit d436f97ea2

View File

@@ -546,7 +546,7 @@ struct npc_salvaged_siege_engine : public VehicleAI
{
if (Unit* turret = vehicle->GetPassenger(7))
{
if (Vehicle* turretVehicle = me->GetVehicleKit())
if (Vehicle* turretVehicle = turret->GetVehicleKit())
{
if (!turretVehicle->IsVehicleInUse())
{