fix: subway unloads stations on exit

This commit is contained in:
tiger tiger tiger 2026-05-06 15:57:04 +02:00
parent 06b06d8ada
commit b40bcffcfd
2 changed files with 7 additions and 0 deletions

View File

@ -102,3 +102,7 @@ func _unparent_all_stations_except(except : Node3D):
current = station current = station
continue continue
remove_child(station) remove_child(station)
func unload() -> void:
for station in stations:
station.queue_free()

View File

@ -22,3 +22,6 @@ func pull_save_state(save: SaveGame) -> void:
# Call parent to restore player position # Call parent to restore player position
super.pull_save_state(save) super.pull_save_state(save)
func unload() -> void:
$Logic/Fahrplan.unload()