Merge pull request #470 from Pan7/fixwarn1

Fix delete and comparison warning
This commit is contained in:
Timothee "TTimo" Besset 2017-04-28 07:14:23 -05:00 committed by GitHub
commit 967d2a88f6
2 changed files with 2 additions and 2 deletions

View file

@ -207,7 +207,7 @@ list<DWinding*> *CreateTrace( dleaf_t *leaf, int c, vis_header *header, byte *vi
} }
} }
delete repeatlist; delete[] repeatlist;
return pointlist; return pointlist;
} }

View file

@ -235,7 +235,7 @@ void CPortals::Load(){
return; return;
} }
if ( portal_count < 0 ) { if ( portal_count <= 0 ) {
fclose( in ); fclose( in );
portal_count = 0; portal_count = 0;