From 7026f9a17e16aa458a8feab67a903b4ce71b7adc Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 23 Feb 2013 21:55:11 +0000 Subject: [PATCH] fix C++ compile error git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11903 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_screen.c b/cl_screen.c index 126f8284..8458d2cf 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -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; -- 2.39.2