- undid the fix that allocated one byte too many for loading a complete file into an FString.

Without this padding byte the voxel loader does not work.
This commit is contained in:
Christoph Oelckers 2022-08-27 00:02:57 +02:00
parent 2e63453cd0
commit fa53fcd085

View file

@ -1612,7 +1612,7 @@ FString::FString(ELumpNum lumpnum)
{
auto lumpr = fileSystem.OpenFileReader((int)lumpnum);
auto size = lumpr.GetLength();
AllocBuffer(size);
AllocBuffer(size + 1);
auto numread = lumpr.Read(&Chars[0], size);
Chars[size] = '\0';