Changeset - r27598:e222bd3be19f
[Not reviewed]
master
0 1 0
Rubidium - 12 months ago 2023-06-17 21:27:15
rubidium@openttd.org
Codechange: use args.GetParam(offset) over *args.GetPointerToOffset(offset)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/strings.cpp
Show inline comments
 
@@ -1064,7 +1064,7 @@ static void FormatString(StringBuilder &
 
			case SCC_PLURAL_LIST: { // {P}
 
				int plural_form = *str++;          // contains the plural form for this string
 
				uint offset = orig_offset + (byte)*str++;
 
				int64 v = *args.GetPointerToOffset(offset); // contains the number that determines plural
 
				int64 v = args.GetParam(offset); // contains the number that determines plural
 
				str = ParseStringChoice(str, DeterminePluralForm(v, plural_form), builder);
 
				break;
 
			}
0 comments (0 inline, 0 general)