From b7235f8f934908012206d961fcdd270ceeb7314d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 15 Nov 2026 14:42:23 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Stop=20account=20saves=20with=20?= =?UTF-8?q?exactly=20256=20regions=20from=20losing=20them?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The region count was clamped to 256 and wrapped to zero in the byte field, truncating the account's region list server-side. --- Client/UfrmAccountControl.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/UfrmAccountControl.pas b/Client/UfrmAccountControl.pas index ca26bc7..09a4a98 100644 --- a/Client/UfrmAccountControl.pas +++ b/Client/UfrmAccountControl.pas @@ -127,7 +127,7 @@ begin FStream.WriteStringNull(APassword); FStream.WriteByte(Byte(AAccessLevel)); - regionCount := Min(ARegions.Count, 256); + regionCount := Min(ARegions.Count, 255); FStream.WriteByte(regionCount); for i := 0 to regionCount - 1 do