From 4e6733cc6e1d2e9214eea0be2f44a795ab09a076 Mon Sep 17 00:00:00 2001 From: Rubidium Date: Sat, 17 Jun 2023 23:27:15 +0200 Subject: [PATCH] Codechange: use args.GetParam(offset) over *args.GetPointerToOffset(offset) --- src/strings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strings.cpp b/src/strings.cpp index 6cb346f4bf..7f40b9f6cf 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -1064,7 +1064,7 @@ static void FormatString(StringBuilder &builder, const char *str_arg, StringPara 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; }