Fix D2 crash on blank line in bitmaps.tbl
Reported-by: InsanityBringer <https://github.com/dxx-rebirth/dxx-rebirth/issues/464#issuecomment-632443732>
This commit is contained in:
parent
c4c09963ae
commit
5dbdc65ee6
|
@ -603,11 +603,10 @@ int gamedata_read_tbl(d_vclip_array &Vclip, int pc_shareware)
|
|||
|
||||
#if defined(DXX_BUILD_DESCENT_I)
|
||||
char *arg = strtok( inputline, space_tab );
|
||||
if (arg && arg[0] == '@')
|
||||
#elif defined(DXX_BUILD_DESCENT_II)
|
||||
arg = strtok( inputline, space_tab );
|
||||
if (arg[0] == '@')
|
||||
#endif
|
||||
if (arg && arg[0] == '@')
|
||||
{
|
||||
arg++;
|
||||
skip = pc_shareware;
|
||||
|
|
Loading…
Reference in New Issue