Skip to content

Commit

Permalink
fix fragglescript bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoLuis0 committed Feb 22, 2024
1 parent 144caa0 commit 6802b33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/playsim/fragglescript/t_prepro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,8 @@ void DFsScript::ParseInclude(FLevelLocals *Level, char *lumpname)
}

int lumplen=fileSystem.FileLength(lumpnum);
TArray<char> lump(lumplen + 10);
TArray<char> lump;
lump.Resize(lumplen + 10);
fileSystem.ReadFile(lumpnum,lump.Data());

lump[lumplen]=0;
Expand Down

0 comments on commit 6802b33

Please sign in to comment.