diff --git a/source/games/duke/src/gamedef.cpp b/source/games/duke/src/gamedef.cpp index c40b2110b..c07a4a5e2 100644 --- a/source/games/duke/src/gamedef.cpp +++ b/source/games/duke/src/gamedef.cpp @@ -607,11 +607,11 @@ int ConCompiler::transword(void) l = 0; while (isaltok(*(textptr + l)) && !(*(textptr + l) == '.')) { - if (l < 31) + if (l < 1023) { parsebuf[l] = textptr[l]; - l++; } + l++; } parsebuf[l] = 0; @@ -665,11 +665,11 @@ int ConCompiler::transnum(int type) l = 0; while (isaltok(*(textptr + l))) { - if (l < 31) + if (l < 1023) { parsebuf[l] = textptr[l]; - l++; } + l++; } parsebuf[l] = 0;