From: Wolfgang Bumiller Date: Sun, 8 Sep 2013 19:31:56 +0000 (+0200) Subject: qcvm: exit on error X-Git-Tag: 0.3.5~101 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3f151321f60ed18cf6b2b03317050f8c30c2823c;p=xonotic%2Fgmqcc.git qcvm: exit on error --- 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;