fix some unintentional math on a void pointer
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 Apr 2007 16:20:31 +0000 (16:20 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 Apr 2007 16:20:31 +0000 (16:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7157 d7cf8633-e32d-0410-b094-e92efae38249

zone.c

diff --git a/zone.c b/zone.c
index 3cbde6c..68958fd 100644 (file)
--- a/zone.c
+++ b/zone.c
@@ -477,7 +477,7 @@ void *Mem_ExpandableArray_RecordAtIndex(memexpandablearray_t *l, size_t index)
        j = index % l->numrecordsperarray;
        if (i >= l->numarrays || !l->arrays[i].allocflags[j])
                return NULL;
-       return (void *)l->arrays[i].data + j * l->recordsize;
+       return (void *)(l->arrays[i].data + j * l->recordsize);
 }