]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cgame.c
changing some things back to size_t
[xonotic/darkplaces.git] / cgame.c
diff --git a/cgame.c b/cgame.c
index 86da9a53d8074849f5d6ee6981eb276349164949..ad162bc14c9a2eccfd52afc4b4e07f9386549236 100644 (file)
--- a/cgame.c
+++ b/cgame.c
@@ -72,7 +72,7 @@ static localentity_t *entspawn(void)
 static void entremove(localentity_t *e)
 {
        int i;
-       i = (e - localentity) / sizeof(localentity_t);
+       i = (int)((e - localentity) / sizeof(localentity_t));
        if (i < 0 || i >= MAX_LOCALENTITIES)
                return; // this should be an error
        //memset(e, 0, sizeof(*e));