The International Simutrans Forum

 

Author Topic: Crash when removing signal without a way  (Read 260 times)

0 Members and 1 Guest are viewing this topic.

Offline ceeac

  • Devotee
  • *
  • Posts: 276
Crash when removing signal without a way
« on: August 25, 2021, 08:28:33 PM »
Steps to reproduce:
  • Build a piece of rail track
  • Switch to public player
  • Build a signal
  • Wait for the other player to go bankrupt. The rail track gets removed, but the signal remains (although it is invisible)
  • Try to remove the signal

The attached patch fixes the crash, however IMO the saner solution would be to either remove objects and convois of other players when a way gets removed, or to make all ways of a player public if the player is removed.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10905
  • Languages: De,EN,JP
Re: Crash when removing signal without a way
« Reply #1 on: August 30, 2021, 02:28:36 PM »
I think building a signal as public player should also make the associated way public ...

Your fix is in at r10059 Thank you