From 9a89bb6793a2fd0c110d21d76568ce925524fa86 Mon Sep 17 00:00:00 2001 From: Shadooow Date: Wed, 2 Feb 2022 13:11:34 +0000 Subject: [PATCH] Set the newly initialized vehicle driver to be NOBODY. This fixes jeep and possibly tank as well in autoresolve to play sounds of player merc. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9288 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Vehicles.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Tactical/Vehicles.cpp b/Tactical/Vehicles.cpp index 5e991d40..d16281c3 100644 --- a/Tactical/Vehicles.cpp +++ b/Tactical/Vehicles.cpp @@ -320,6 +320,7 @@ INT32 AddVehicleToList( INT16 sMapX, INT16 sMapY, INT32 sGridNo, UINT8 ubType ) pVehicleList[ iCount ].iOutOfSound = gNewVehicle[ ubType ].iNewEnterVehicleSndID; pVehicleList[ iCount ].ubProfileID = ubType; //gNewVehicle[ ubType ].ubNewVehicleTypeProfileID;//gNewVehicle[ ubType ].uiIndex; //gNewVehicle[ ubType ].ubNewVehicleTypeProfileID; // pVehicleList[ iCount ].ubMovementGroup = gubVehicleMovementGroups[ iCount ]; + pVehicleList[ iCount ].ubDriver = NOBODY; // ATE: Add movement mask to group... pGroup = GetGroup( pVehicleList[ iCount ].ubMovementGroup );