Fix some of the things clang --analyze flagged
This commit is contained in:
parent
352cd151e0
commit
98360bcd57
34 changed files with 58 additions and 112 deletions
|
@ -2123,8 +2123,6 @@ static void R_CreateWorldVBO(void)
|
|||
}
|
||||
|
||||
|
||||
startTime = ri.Milliseconds();
|
||||
|
||||
ri.Free(surfacesSorted);
|
||||
|
||||
ri.Hunk_FreeTempMemory(triangles);
|
||||
|
@ -2151,7 +2149,6 @@ static void R_LoadSurfaces( lump_t *surfs, lump_t *verts, lump_t *indexLump ) {
|
|||
numTriSurfs = 0;
|
||||
numFlares = 0;
|
||||
|
||||
in = (void *)(fileBase + surfs->fileofs);
|
||||
if (surfs->filelen % sizeof(*in))
|
||||
ri.Error (ERR_DROP, "LoadMap: funny lump size in %s",s_worldData.name);
|
||||
count = surfs->filelen / sizeof(*in);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue