From 8f5c0feb45555fc92578936a314b1d3a3422c60d Mon Sep 17 00:00:00 2001 From: orwell96 Date: Sun, 4 Dec 2016 23:18:28 +0100 Subject: fix bug about seats on wagon sometimes a single character can cause great mess... --- wagons.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wagons.lua') 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 -- cgit v1.2.3