diff options
Diffstat (limited to 'src/qcommon/vm_x86_64.c')
-rw-r--r-- | src/qcommon/vm_x86_64.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qcommon/vm_x86_64.c b/src/qcommon/vm_x86_64.c index 0e56d1fc..0eb79306 100644 --- a/src/qcommon/vm_x86_64.c +++ b/src/qcommon/vm_x86_64.c @@ -235,7 +235,7 @@ void emit(const char* fmt, ...) va_list ap; char line[4096]; va_start(ap, fmt); - vsnprintf(line, sizeof(line), fmt, ap); + Q_vsnprintf(line, sizeof(line), fmt, ap); va_end(ap); assemble_line(line, strlen(line)); } @@ -1070,7 +1070,6 @@ int VM_CallCompiled( vm_t *vm, int *args ) { currentVM = vm; - ++vm->callLevel; // Com_Printf("entering %s level %d, call %d, arg1 = 0x%x\n", vm->name, vm->callLevel, args[0], args[1]); // interpret the code @@ -1132,7 +1131,6 @@ int VM_CallCompiled( vm_t *vm, int *args ) { } // Com_Printf("exiting %s level %d\n", vm->name, vm->callLevel); - --vm->callLevel; vm->programStack = stackOnEntry; return *(int *)opStack; |