1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-22 22:19:08 +00:00

Fix #11521, e404ba0: size for remaining span determined incorrectly

This commit is contained in:
rubidium42
2023-11-30 07:47:51 -04:00
committed by rubidium42
parent cb8612ba79
commit 33ba609290

View File

@@ -129,7 +129,7 @@ public:
*/
StringParameters GetRemainingParameters(size_t offset)
{
return StringParameters(this->parameters.subspan(offset, GetDataLeft()));
return StringParameters(this->parameters.subspan(offset, this->parameters.size() - offset));
}
/** Return the amount of elements which can still be read. */