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:
Kp 2020-05-22 02:40:26 +00:00
parent c4c09963ae
commit 5dbdc65ee6
1 changed files with 1 additions and 2 deletions

View File

@ -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;