]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix C++ compile error
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 23 Feb 2013 21:55:11 +0000 (21:55 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 25 Feb 2013 08:25:00 +0000 (09:25 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11903 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7026f9a17e16aa458a8feab67a903b4ce71b7adc

cl_screen.c

index 126f8284ce06aab2288b9abfbf81c89d98bb1ae1..8458d2cf707018245f0b16d816687f690a6679c2 100644 (file)
@@ -1074,7 +1074,7 @@ static void R_TimeReport_EndFrame(void)
                        cls.r_speeds_graph_current = 0;
                        if (cls.r_speeds_graph_data)
                                Mem_Free(cls.r_speeds_graph_data);
-                       cls.r_speeds_graph_data = Mem_Alloc(cls.permanentmempool, cls.r_speeds_graph_length * sizeof(r_refdef.stats));
+                       cls.r_speeds_graph_data = (int *)Mem_Alloc(cls.permanentmempool, cls.r_speeds_graph_length * sizeof(r_refdef.stats));
                        // initialize the graph to have the current values throughout history
                        graph_data = cls.r_speeds_graph_data;
                        graph_length = cls.r_speeds_graph_length;