From 23f323bee1c9dae4d9e09d30239199c73b3f7fe0 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 14 Nov 2026 22:49:15 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Create=20the=20texture=20save=20?= =?UTF-8?q?buffer=20for=20streamed=20textures?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Textures loaded from file never had their buffer allocated, so any save attempt crashed with an access violation. --- UOLib/UTexture.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/UOLib/UTexture.pas b/UOLib/UTexture.pas index f03650d..a894bdc 100644 --- a/UOLib/UTexture.pas +++ b/UOLib/UTexture.pas @@ -63,6 +63,7 @@ begin else size := 128; FGraphic := TSingleImage.CreateFromParams(size, size, ifX1R5G5B5); + FBuffer := TMemoryStream.Create; if assigned(AData) then begin AData.Position := AIndex.Lookup;