From b1b7f975f16023210e81d61fa14f300ea774ccc8 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Thu, 27 Oct 2005 22:38:25 +0000 Subject: [PATCH] * Fix the x86 vm --- code/qcommon/vm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/qcommon/vm.c b/code/qcommon/vm.c index a20e69fa..6c26d003 100644 --- a/code/qcommon/vm.c +++ b/code/qcommon/vm.c @@ -749,10 +749,10 @@ long QDECL VM_Call( vm_t *vm, long callnum, ... ) { #ifdef __i386__ // i386 calling convention doesn't need conversion #if defined(HAVE_VM_COMPILED) if ( vm->compiled ) - r = VM_CallCompiled( vm, (int*)callnum ); + r = VM_CallCompiled( vm, (int*)&callnum ); else #endif - r = VM_CallInterpreted( vm, (int*)callnum ); + r = VM_CallInterpreted( vm, (int*)&callnum ); #else struct { int callnum;