mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 18:09:09 +00:00
(svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted.
This commit is contained in:
@@ -224,7 +224,8 @@ static void DrawShipEngineInfo(EngineID engine, int left, int right, int top, in
|
||||
|
||||
void DrawNewsNewVehicleAvail(Window *w, const NewsItem *ni)
|
||||
{
|
||||
EngineID engine = ni->data_a;
|
||||
assert(ni->reftype1 == NR_ENGINE);
|
||||
EngineID engine = ni->ref1;
|
||||
const DrawEngineInfo *dei = &_draw_engine_list[Engine::Get(engine)->type];
|
||||
|
||||
SetDParam(0, GetEngineCategoryName(engine));
|
||||
|
Reference in New Issue
Block a user