- fix allocation for tile buffer.

This commit is contained in:
Christoph Oelckers 2023-08-23 21:05:00 +02:00
parent 82057bcd5a
commit ec18e022ca

View file

@ -440,7 +440,7 @@ static void AddArtFile(const FString& filename)
FileReader fr = fileSystem.OpenFileReader(filename);
if (fr.isOpen())
{
TArray<uint8_t> artdata(fr.GetLength());
TArray<uint8_t> artdata(fr.GetLength(), true);
fr.Read(artdata.Data(), artdata.Size());
if (artdata.Size() > 16)
{