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:
committed by
GitHub
parent
6eb5c166dc
commit
c4912c94e4
@@ -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());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@@ -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());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user