From c4912c94e434b17de64401ffbf4016e2bb00bb71 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 25 Aug 2025 15:16:04 +0100 Subject: [PATCH] Fix: Incorrect use of GetDescription in town/industry load handler (#14526) GetLoadDescription should be used instead such that skipping incoming table fields works as expected --- src/saveload/industry_sl.cpp | 4 ++-- src/saveload/town_sl.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/saveload/industry_sl.cpp b/src/saveload/industry_sl.cpp index 7d81e2bf95..1ba6598e01 100644 --- a/src/saveload/industry_sl.cpp +++ b/src/saveload/industry_sl.cpp @@ -50,7 +50,7 @@ public: auto &history = a->GetOrCreateHistory(); for (auto &h : history) { if (--len > history.size()) break; // unsigned so wraps after hitting zero. - SlObject(&h, this->GetDescription()); + SlObject(&h, this->GetLoadDescription()); } } }; @@ -110,7 +110,7 @@ public: for (auto &h : p->history) { if (--len > p->history.size()) break; // unsigned so wraps after hitting zero. - SlObject(&h, this->GetDescription()); + SlObject(&h, this->GetLoadDescription()); } } }; diff --git a/src/saveload/town_sl.cpp b/src/saveload/town_sl.cpp index 95b94d9143..52db7a54e6 100644 --- a/src/saveload/town_sl.cpp +++ b/src/saveload/town_sl.cpp @@ -178,7 +178,7 @@ public: for (auto &h : p->history) { if (--len > p->history.size()) break; // unsigned so wraps after hitting zero. - SlObject(&h, this->GetDescription()); + SlObject(&h, this->GetLoadDescription()); } } };