Its possible to build a spaceship inside a vault which is inoperable as expected but then when the player dies, a call is made to Respawn.get_options(player), which loops through global.spaceships and calls spaceship_zone = Zone.from_surface(Spaceship.get_current_surface(spaceship)). Spaceship.get_current_surface(spaceship) goes on to call Spaceship.get_own_surface(spaceship) then return game.get_surface("spaceship-"..spaceship.index) which crashes due to the spaceship built earlier being in the vault.
Its possible to build a spaceship inside a vault which is inoperable as expected but then when the player dies, a call is made to
Respawn.get_options(player)
, which loops throughglobal.spaceships
and callsspaceship_zone = Zone.from_surface(Spaceship.get_current_surface(spaceship))
.Spaceship.get_current_surface(spaceship)
goes on to callSpaceship.get_own_surface(spaceship)
thenreturn game.get_surface("spaceship-"..spaceship.index)
which crashes due to the spaceship built earlier being in the vault.