Fix : First unit of base defenses group was not controllable with Combined Arms.

This commit is contained in:
Khopa 2020-08-20 12:54:03 +02:00
parent ab2edc6e59
commit 9c35156db9

View File

@ -66,6 +66,7 @@ class GroundObjectsGenerator:
if not ground_object.sea_object:
vg = self.m.vehicle_group(side, g.name, utype, position=g.position, heading=g.units[0].heading)
vg.units[0].name = self.m.string(g.units[0].name)
vg.units[0].player_can_drive = True
for i, u in enumerate(g.units):
if i > 0:
vehicle = Vehicle(self.m.next_unit_id(), self.m.string(u.name), u.type)