From 5eac1d1d27000a40e0d1e47080546c5cbd430dcf Mon Sep 17 00:00:00 2001 From: orwell96 Date: Wed, 15 Feb 2017 21:19:30 +0100 Subject: fix crash on seatpc nil --- advtrains.zip | Bin 5122950 -> 5122954 bytes advtrains/advtrains/wagons.lua | 3 +++ 2 files changed, 3 insertions(+) diff --git a/advtrains.zip b/advtrains.zip index cf335d3..34f6ca6 100644 Binary files a/advtrains.zip and b/advtrains.zip differ 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 -- cgit v1.2.3