1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 10:59:12 +00:00

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
This commit is contained in:
Jonathan G Rennison
2025-08-25 15:16:04 +01:00
committed by GitHub
parent 6eb5c166dc
commit c4912c94e4
2 changed files with 3 additions and 3 deletions

View File

@@ -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());
}
}
};

View File

@@ -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());
}
}
};