From e03b998c417ff5e3293f5eeaa721d601e0e61ce9 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 6 Dec 2023 20:18:26 +0000 Subject: [PATCH] Fix depot ctrl-right-click tooltip with multiple cargoes See: #616 --- src/depot_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index bccde9c097..a34b17c77e 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -874,7 +874,7 @@ struct DepotWindow : Window { } } - /* Build tooltipstring */ + /* Build tooltip string */ std::string details; for (const CargoSpec *cs : _sorted_cargo_specs) { @@ -885,7 +885,7 @@ struct DepotWindow : Window { SetDParam(1, loaded[cargo_type]); // {CARGO} #2 SetDParam(2, cargo_type); // {SHORTCARGO} #1 SetDParam(3, capacity[cargo_type]); // {SHORTCARGO} #2 - details = GetString(STR_DEPOT_VEHICLE_TOOLTIP_CARGO); + details += GetString(STR_DEPOT_VEHICLE_TOOLTIP_CARGO); } /* Show tooltip window */