From 9864157f33ec4ec450645883eece95dc0fc38e4a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 15 Nov 2026 14:38:38 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Stop=20region=20saves=20with=20e?= =?UTF-8?q?xactly=20256=20areas=20from=20wiping=20them?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The count was clamped to 256 and then stored in a byte, wrapping to zero, so the server replaced the region with an empty area list. --- Client/UfrmRegionControl.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/UfrmRegionControl.pas b/Client/UfrmRegionControl.pas index 910860d..339f47c 100644 --- a/Client/UfrmRegionControl.pas +++ b/Client/UfrmRegionControl.pas @@ -162,7 +162,7 @@ begin inherited Create($03, 0); //Admin Packet FStream.WriteByte($08); //Admin PacketID FStream.WriteStringNull(ARegionInfo.Name); - count := Min(ARegionInfo.Areas.Count, 256); + count := Min(ARegionInfo.Areas.Count, 255); FStream.WriteByte(count); for i := 0 to count - 1 do begin