mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +00:00
- 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:
parent
2e63453cd0
commit
fa53fcd085
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in a new issue