diff options
author | orwell96 <mono96.mml@gmail.com> | 2016-12-04 23:18:28 +0100 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2016-12-04 23:20:19 +0100 |
commit | 8f5c0feb45555fc92578936a314b1d3a3422c60d (patch) | |
tree | 9de58a431836203fbad9d2d24d618051331ef221 /wagons.lua | |
parent | f155011e1a407e163f8547101973bdbd11439365 (diff) | |
download | advtrains-8f5c0feb45555fc92578936a314b1d3a3422c60d.tar.gz advtrains-8f5c0feb45555fc92578936a314b1d3a3422c60d.tar.bz2 advtrains-8f5c0feb45555fc92578936a314b1d3a3422c60d.zip |
fix bug about seats on wagon
sometimes a single character can cause great mess...
Diffstat (limited to 'wagons.lua')
-rw-r--r-- | wagons.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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
|