Page 1 of 1

[0.10.1][kovarex] Destroying passenger in vehicle blocks use

Posted: Sun Jun 22, 2014 1:55 am
by JamesOFarrell
Just a minor issue, destroying the passenger entity that is in a vehicle does not clear the vehicles passenger property, making the vehicle unusable. Only tested with trains.

Re: [0.10.1] Destroying passenger entity in vehicle blocks u

Posted: Mon Jun 23, 2014 3:42 pm
by FreeER
just thought I'd comment to say that the same happens with the car (as expected) and that attempting to set the passenger to nil after destroying it will crash factorio to the desktop (of course setting it to nil and then destroying works fine)

Re: [0.10.1][kovarex] Destroying passenger in vehicle blocks

Posted: Mon Jun 23, 2014 4:28 pm
by kovarex
Thanks for the notice, the vehicle -> character pointer is now cleared when the character is destroyed.
Fixed for 0.10.2