🚨 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user