removed unused variable in M_FindResponseFile and added file length check in ANM player.

This commit is contained in:
Christoph Oelckers 2023-12-03 22:19:13 +01:00
commit 96b3f1f5e0
2 changed files with 1 additions and 2 deletions

View file

@ -100,7 +100,6 @@ void M_FindResponseFile (void)
char **argv;
FileSys::ResourceData file;
int argc = 0;
int size;
size_t argsize = 0;
int index;
@ -117,7 +116,6 @@ void M_FindResponseFile (void)
else
{
Printf ("Found response file %s!\n", Args->GetArg(i) + 1);
size = (int)fr.GetLength();
file = fr.ReadPadded(1);
argsize = ParseCommandLine (file.string(), &argc, nullptr);
}