From 2cc0be66c997143df0749e1caf69781e28c1195d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 15 Nov 2026 09:04:43 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Keep=20the=20screen=20buffer=20t?= =?UTF-8?q?ail=20pointer=20valid=20on=20inserts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Inserting an item that sorted after everything left the tail shortcut stale, so later appends unlinked existing nodes. This leaked screen entries, their textures, and blocked cache eviction forever. --- Client/ULandscape.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/ULandscape.pas b/Client/ULandscape.pas index 4dca1b4..b02a5c5 100644 --- a/Client/ULandscape.pas +++ b/Client/ULandscape.pas @@ -1611,7 +1611,7 @@ begin current := current^.Next; end; - if FShortCuts[-1] = current^.Next then + if current^.Next = nil then FShortCuts[-1] := Result; //Update last item Result^.Next := current^.Next;