]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix PRVM_E_INT which was severely bugged
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 Apr 2012 03:06:33 +0000 (03:06 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 Apr 2012 03:06:33 +0000 (03:06 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11790 d7cf8633-e32d-0410-b094-e92efae38249

progsvm.h

index 83666557ceaad96fccd6a0ab8b9d4c9ac80534d9..17ee4aa406a12d01c8bb9149b9b57b62e8e80740 100644 (file)
--- 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]))