mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-27 08:29:11 +00:00
(svn r26006) -Fix [FS#5804]: Game script showing vehicle on a story book, then the vehicle being removed and eventually being replaced by a non-user vehicle (most likely smoke) causing an assertion to trigger
This commit is contained in:
@@ -1489,7 +1489,7 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg
|
||||
|
||||
StringID str;
|
||||
switch (v->type) {
|
||||
default: NOT_REACHED();
|
||||
default: str = STR_INVALID_VEHICLE; break;
|
||||
case VEH_TRAIN: str = STR_SV_TRAIN_NAME; break;
|
||||
case VEH_ROAD: str = STR_SV_ROAD_VEHICLE_NAME; break;
|
||||
case VEH_SHIP: str = STR_SV_SHIP_NAME; break;
|
||||
|
Reference in New Issue
Block a user