aboutsummaryrefslogtreecommitdiff
path: root/wagons.lua
diff options
context:
space:
mode:
Diffstat (limited to 'wagons.lua')
-rw-r--r--wagons.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/wagons.lua b/wagons.lua
index 8348353..6b3780a 100644
--- a/wagons.lua
+++ b/wagons.lua
@@ -427,7 +427,7 @@ function wagon:get_off_plr(pname)
end
end
function wagon:get_seatno(pname)
- for no, cont in ipairs(self.seatp) do
+ for no, cont in pairs(self.seatp) do
if cont==pname then
return no
end