From ca8a0afc3b62aeb37710bf4e8f622329aff9ceea Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 15 Nov 2026 19:41:58 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Rename=20a=20local=20that=20shad?= =?UTF-8?q?owed=20the=20localization=20text=20property?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The unit did not compile standalone because the serialize routine declared a variable with the name of the published property. --- UOLib/ULocalization.pas | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UOLib/ULocalization.pas b/UOLib/ULocalization.pas index c3c55ff..69bc70d 100644 --- a/UOLib/ULocalization.pas +++ b/UOLib/ULocalization.pas @@ -73,14 +73,14 @@ end; procedure TLocalizationEntry.Serialize(Data: TStream); var iLength: SmallInt; - text: string; + encodedText: string; begin Data.Write(FNumber, SizeOf(Integer)); Data.Write(FUnknown, SizeOf(Byte)); - text := UTF8Encode(FText); - iLength := Length(text); + encodedText := UTF8Encode(FText); + iLength := Length(encodedText); Data.Write(iLength, SizeOf(SmallInt)); - Data.Write(PChar(text)^, iLength); + Data.Write(PChar(encodedText)^, iLength); end; function TLocalizationEntry.GetSize: Integer;