]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a compile error when using C++ mode
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 16 Feb 2009 19:40:24 +0000 (19:40 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 16 Feb 2009 19:40:24 +0000 (19:40 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8715 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index 08c71f396a5423c6301b515f2723b893a184aade..b8e2e51f7b5ce120dac8e0d3036d3daa32dcb717 100644 (file)
@@ -3630,7 +3630,7 @@ void R_DrawCoronas(void)
        // now draw the coronas using the query data for intensity info
        for (lightindex = 0;lightindex < range;lightindex++)
        {
-               light = Mem_ExpandableArray_RecordAtIndex(&r_shadow_worldlightsarray, lightindex);
+               light = (dlight_t *) Mem_ExpandableArray_RecordAtIndex(&r_shadow_worldlightsarray, lightindex);
                if (!light)
                        continue;
                rtlight = &light->rtlight;