diff options
author | orwell96 <mono96.mml@gmail.com> | 2017-02-15 21:19:30 +0100 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2017-02-15 21:19:30 +0100 |
commit | 5eac1d1d27000a40e0d1e47080546c5cbd430dcf (patch) | |
tree | 50de9cc9a54d3c5ea1d9b0af6a464b7450407577 | |
parent | 5b7a06fe0faba5f037a0b2e602284674fb0b3fb1 (diff) | |
download | advtrains-5eac1d1d27000a40e0d1e47080546c5cbd430dcf.tar.gz advtrains-5eac1d1d27000a40e0d1e47080546c5cbd430dcf.tar.bz2 advtrains-5eac1d1d27000a40e0d1e47080546c5cbd430dcf.zip |
fix crash on seatpc nil
-rw-r--r-- | advtrains.zip | bin | 5122950 -> 5122954 bytes | |||
-rw-r--r-- | advtrains/advtrains/wagons.lua | 3 |
2 files changed, 3 insertions, 0 deletions
diff --git a/advtrains.zip b/advtrains.zip Binary files differindex cf335d3..34f6ca6 100644 --- a/advtrains.zip +++ b/advtrains.zip diff --git a/advtrains/advtrains/wagons.lua b/advtrains/advtrains/wagons.lua index 461dfb5..1a889b5 100644 --- a/advtrains/advtrains/wagons.lua +++ b/advtrains/advtrains/wagons.lua @@ -227,6 +227,9 @@ function wagon:on_step(dtime) if not self.seatp then
self.seatp={}
end
+ if not self.seatpc then
+ self.seatpc={}
+ end
--Legacy: remove infotext since it does not work this way anyways
self.infotext=nil
|