mirror of
https://github.com/APercy/airutils.git
synced 2025-07-15 10:46:42 -04:00
fix non existent variables
This commit is contained in:
parent
97abe243d3
commit
c06bda3fcc
3 changed files with 4 additions and 3 deletions
|
@ -187,7 +187,7 @@ function airutils.attach_pax(self, player, is_copilot)
|
|||
return
|
||||
end
|
||||
|
||||
t = {} -- new array
|
||||
local t = {} -- new array
|
||||
for i=1, max_seats - crew do --(the first are for the crew
|
||||
t[i] = i
|
||||
end
|
||||
|
@ -199,6 +199,7 @@ function airutils.attach_pax(self, player, is_copilot)
|
|||
end
|
||||
|
||||
--for i = 1,10,1 do
|
||||
local i = 0
|
||||
for k,v in ipairs(t) do
|
||||
i = t[k] + crew --jump the crew seats
|
||||
if self._passengers[i] == nil then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue