1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-20 19:02:41 +01:00

Fix: EngineImageType mismatch between sizing and drawing in preview window (#14455)

This commit is contained in:
Jonathan G Rennison
2025-07-18 12:02:46 +01:00
committed by GitHub
parent 1b01a0636c
commit 03672ed8eb

View File

@@ -84,7 +84,7 @@ struct EnginePreviewWindow : Window {
/* Get size of engine sprite, on loan from depot_gui.cpp */
EngineID engine = static_cast<EngineID>(this->window_number);
EngineImageType image_type = EIT_PURCHASE;
EngineImageType image_type = EIT_PREVIEW;
uint x, y;
int x_offs, y_offs;