Timetable mode : crash on actions on train after attach

Bug #1929877 reported by r.roeterdink
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open Rails
In Progress
Undecided
r.roeterdink

Bug Description

Crash occurs if player train attaches to other train and then forms into other train.

In this situation, the method "PlayerTrainChanged" (in viewer.cs) is called to change the player train reference. However, this method did not call "SetCommandReceivers", so certain commands were still send to the 'old' train and as this train no longer exists this causes the program to crash.

Mod : add call to SetCommandReceivers for new train in PlayerTrainChanged.

Changed in or:
status: New → In Progress
assignee: nobody → r.roeterdink (r-roeterdink)
Revision history for this message
r.roeterdink (r-roeterdink) wrote :

Cancelled

Changed in or:
status: In Progress → Invalid
Revision history for this message
r.roeterdink (r-roeterdink) wrote :

Reopened

Changed in or:
status: Invalid → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.