From fbe1dd5ae7609adba15e090953c8686a1cd826d8 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 9 Apr 2012 03:06:33 +0000 Subject: [PATCH] fix PRVM_E_INT which was severely bugged git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11790 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=67e216e593a42c6a2d1efcdbfbc4ea2fbebf9827 --- progsvm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progsvm.h b/progsvm.h index 83666557..17ee4aa4 100644 --- a/progsvm.h +++ b/progsvm.h @@ -822,7 +822,7 @@ unsigned int PRVM_EDICT_NUM_ERROR(prvm_prog_t *prog, unsigned int n, const char // FIXME: make these go away? #define PRVM_E_FLOAT(e,o) (e->fields.fp[o]) -#define PRVM_E_INT(e,o) (e->fields.fp[o]) +#define PRVM_E_INT(e,o) (e->fields.ip[o]) //#define PRVM_E_VECTOR(e,o) (&(e->fields.fp[o])) #define PRVM_E_STRING(e,o) (PRVM_GetString(prog, e->fields.ip[o])) -- 2.39.2