]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
qcvm: exit on error
authorWolfgang Bumiller <wry.git@bumiller.com>
Sun, 8 Sep 2013 19:31:56 +0000 (21:31 +0200)
committerWolfgang Bumiller <wry.git@bumiller.com>
Sun, 8 Sep 2013 19:31:56 +0000 (21:31 +0200)
exec.c

diff --git a/exec.c b/exec.c
index 1856248bcab4a88ed50725ea9df53b82766580d4..4fcb683561a2aceef6e15fdfc662e631a2f522f5 100644 (file)
--- 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;