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
This commit is contained in:
Shadooow
2022-02-02 13:11:34 +00:00
parent 31b17d99d0
commit 9a89bb6793
+1
View File
@@ -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 );