diff options
Diffstat (limited to 'src/engine_gui.cpp')
-rw-r--r-- | src/engine_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine_gui.cpp b/src/engine_gui.cpp index 411c6e34f..ef2fb3fd2 100644 --- a/src/engine_gui.cpp +++ b/src/engine_gui.cpp @@ -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)); |