diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index 152e37bdc..0fa23a0e0 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -1521,6 +1521,9 @@ static int32_t C_GetKeyword(void) C_SkipComments(); + if (*textptr == '\0') // EOF + return 0; + temptextptr = textptr; while (isaltok(*temptextptr) == 0)