# UNDF: UNDF-2026-000001007 --- a/src/simutrans/simhalt.cc +++ b/src/simutrans/simhalt.cc @@ -1374,13 +1374,22 @@ void haltestelle_t::rebuild_linked_connections() { - vector_tpl all; // all halts connected to this halt - for( uint8 i=0; i seen; + vector_tpl all; + for( uint8 i=0; i& connections = all_links[i].connections; for(connection_t &c : connections) { - all.append_unique( c.halt ); + if( c.halt.is_bound() ) { + uint16 halt_id = c.halt.get_id(); + if( !seen.get(halt_id) ) { + seen.put(halt_id, true); + all.append(c.halt); + } + } } } for(halthandle_t h : all) {