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

This subforum contains all the issues which we already resolved.
JamesOFarrell
Filter Inserter
Filter Inserter
Posts: 402
Joined: Fri May 23, 2014 8:54 am
Contact:

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

Post 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.
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

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

Post 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)
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

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

Post by kovarex »

Thanks for the notice, the vehicle -> character pointer is now cleared when the character is destroyed.
Fixed for 0.10.2
Post Reply

Return to “Resolved Problems and Bugs”