Changeset - r28211:60c1b172681d
[Not reviewed]
master
0 1 0
rubidium42 - 12 months ago 2023-11-30 11:47:51
rubidium@openttd.org
Fix #11521, e404ba0: size for remaining span determined incorrectly
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/strings_internal.h
Show inline comments
 
@@ -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. */
0 comments (0 inline, 0 general)