mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Avoid ‘ncs’ being used uninitialized
This commit is contained in:
parent
55d07235a4
commit
c68cfbdda0
1 changed files with 6 additions and 4 deletions
10
src/g_game.c
10
src/g_game.c
|
|
@ -6294,11 +6294,13 @@ static void G_LoadDemoExtraFiles(UINT8 **pp)
|
|||
else
|
||||
ncs = findfile(filename, md5sum, false);
|
||||
|
||||
if (toomany || ncs != FS_FOUND)
|
||||
if (toomany)
|
||||
{
|
||||
if (toomany)
|
||||
CONS_Printf("Too many files loaded\n");
|
||||
else if (ncs == FS_NOTFOUND)
|
||||
CONS_Printf("Too many files loaded\n");
|
||||
}
|
||||
else if (ncs != FS_FOUND)
|
||||
{
|
||||
if (ncs == FS_NOTFOUND)
|
||||
CONS_Printf("You do not have a copy of %s\n", filename);
|
||||
else if (ncs == FS_MD5SUMBAD)
|
||||
CONS_Printf("Checksum mismatch on %s\n", filename);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue