fix co_pilot error when do not have seat

This commit is contained in:
Alexsandro Percy 2023-11-05 18:12:15 -03:00
parent 91ac05ee71
commit b23ed3890b

View file

@ -133,6 +133,7 @@ function airutils.check_passenger_is_attached(self, name)
end
local function attach_copilot(self, name, player, eye_y)
if not self.co_pilot_seat_base then return end
self.co_pilot = name
self._passengers[2] = name
-- attach the driver