FS#3208 - crash when making non-front engine front one

Attached to Project: OpenTTD
Opened by Zdeněk Sojka (SmatZ) - Thursday, 17 September 2009, 23:30 GMT
Last edited by Remko Bijker (Rubidium) - Saturday, 19 September 2009, 13:55 GMT
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System All
Severity High
Priority Normal
Reported Version 0.7.3-RC1
Due in Version 0.7.3
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


0.7, trunk r17563

In the attached savegame, move front wagon to Train 1. The wagon chain has to be over 100 vehicles long and there has to be engine behind that wagon.

src/group_cmd.cpp:361: void SetTrainGroupID(Vehicle*, GroupID): Assertion `v->IsValid() && v->type == VEH_TRAIN && IsFrontEngine(v)' failed.
group_cmd.cpp:356: void SetTrainGroupID(Train*, GroupID): Assertion `v->IsFrontEngine()' failed.
This task depends upon

Closed by  Remko Bijker (Rubidium)
Saturday, 19 September 2009, 13:55 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r17576