improved copilot detacchment

This commit is contained in:
Alexsandro Percy 2023-07-15 12:36:20 -03:00
parent 86432a1979
commit 07a1d382c6
1 changed files with 1 additions and 0 deletions

View File

@ -193,6 +193,7 @@ function airutils.dettach_pax(self, player)
-- passenger clicked the object => driver gets off the vehicle
if self.co_pilot == name then
self.co_pilot = nil
self._passengers[2] = nil
else
local max_seats = table.getn(self._seats)
for i = max_seats,1,-1