]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix two C++ errors
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 11 Mar 2011 22:56:02 +0000 (22:56 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 11 Mar 2011 22:56:02 +0000 (22:56 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10908 d7cf8633-e32d-0410-b094-e92efae38249

collision.c

index 9f4a416eb2e363e67d68171dba9ad917e1aea2c6..fbc8a1cbbe5ba99999de5c5ed7994cb21e8c0805 100644 (file)
@@ -1705,8 +1705,8 @@ void Collision_Cache_Reset(qboolean resetlimits)
                collision_cachedtrace_max = 1024;
        collision_cachedtrace_firstfree = 1;
        collision_cachedtrace_lastused = 0;
-       collision_cachedtrace_array = Mem_Alloc(collision_cachedtrace_mempool, collision_cachedtrace_max * sizeof(collision_cachedtrace_t));
-       collision_cachedtrace_hash = Mem_Alloc(collision_cachedtrace_mempool, collision_cachedtrace_max * sizeof(int));
+       collision_cachedtrace_array = (collision_cachedtrace_t *)Mem_Alloc(collision_cachedtrace_mempool, collision_cachedtrace_max * sizeof(collision_cachedtrace_t));
+       collision_cachedtrace_hash = (int *)Mem_Alloc(collision_cachedtrace_mempool, collision_cachedtrace_max * sizeof(int));
        collision_cachedtrace_sequence = 1;
 }