🚨 Stop account saves with exactly 256 regions from losing them

The region count was clamped to 256 and wrapped to zero in the
byte field, truncating the account's region list server-side.
This commit is contained in:
2026-11-15 22:08:32 +01:00
parent 74cf40118c
commit b7235f8f93
+1 -1
View File
@@ -127,7 +127,7 @@ begin
FStream.WriteStringNull(APassword); FStream.WriteStringNull(APassword);
FStream.WriteByte(Byte(AAccessLevel)); FStream.WriteByte(Byte(AAccessLevel));
regionCount := Min(ARegions.Count, 256); regionCount := Min(ARegions.Count, 255);
FStream.WriteByte(regionCount); FStream.WriteByte(regionCount);
for i := 0 to regionCount - 1 do for i := 0 to regionCount - 1 do