From e3752dc02d2ac082b5335a80854ee7f6a292e4be Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Fri, 15 Feb 2013 14:09:18 +1030 Subject: [PATCH] qbsp: remove unneccessary cast from LoadMapFile() Signed-off-by: Kevin Shanahan --- qbsp/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbsp/map.c b/qbsp/map.c index 4a5b8daf..24487156 100644 --- a/qbsp/map.c +++ b/qbsp/map.c @@ -583,7 +583,7 @@ LoadMapFile(void) Error(errLowMiptexCount); else if (cMiptex < map.maxfaces) { // For stuff in AddAnimatingTex, make room available - pTemp = (void *)rgszMiptex; + pTemp = rgszMiptex; rgszMiptex = AllocMem(MIPTEX, cMiptex + cAnimtex * 20, true); memcpy(rgszMiptex, pTemp, cMiptex * rgcMemSize[MIPTEX]); FreeMem(pTemp, MIPTEX, map.maxfaces);