From 3f151321f60ed18cf6b2b03317050f8c30c2823c Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Sun, 8 Sep 2013 21:31:56 +0200 Subject: [PATCH] qcvm: exit on error --- exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.c b/exec.c index 1856248..4fcb683 100644 --- a/exec.c +++ b/exec.c @@ -1256,7 +1256,7 @@ void prog_disasm_function(qc_program_t *prog, size_t id) { # define FLOAT_IS_TRUE_FOR_INT(x) ( (x) & 0x7FFFFFFF ) #endif -while (1) { +while (prog->vmerror == 0) { prog_section_function_t *newf; qcany_t *ed; qcany_t *ptr; -- 2.39.2