diff --git a/src/station_gui.cpp b/src/station_gui.cpp --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -674,7 +674,16 @@ static void DrawCargoIcons(CargoID i, ui if (num == 0) return; const CargoSpec *cs = GetCargo(i); - SpriteID sprite = cs->sprite; + SpriteID sprite; + + if (cs->sprite == 0xFFFF) { + /* A value of 0xFFFF indicates we should draw a custom icon */ + sprite = GetCustomCargoSprite(cs); + } else { + sprite = cs->sprite; + } + + if (sprite == 0) return; do { DrawSprite(sprite, PAL_NONE, x, y);