diff --git a/tools/qfcc/source/function.c b/tools/qfcc/source/function.c index b02dc30c4..57de54a16 100644 --- a/tools/qfcc/source/function.c +++ b/tools/qfcc/source/function.c @@ -819,7 +819,7 @@ build_code_function (symbol_t *fsym, expr_t *state_expr, expr_t *statements) STACK_ALIGN); dstatement_t *st = &pr.code->code[func->code]; - if (st->op == OP_ADJSTK) { + if (pr.code->size > func->code && st->op == OP_ADJSTK) { if (func->params_start) { st->b = -func->params_start; } else {