mirror of https://github.com/OpenTTD/OpenTTD
Fix #11521, e404ba0: size for remaining span determined incorrectly
parent
cb8612ba79
commit
33ba609290
|
@ -129,7 +129,7 @@ public:
|
||||||
*/
|
*/
|
||||||
StringParameters GetRemainingParameters(size_t offset)
|
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. */
|
/** Return the amount of elements which can still be read. */
|
||||||
|
|
Loading…
Reference in New Issue