Fix delete and comparison warning

This commit is contained in:
Pan7 2017-04-27 17:56:57 +02:00
parent 6e3c89c217
commit e74153558b
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;
}

View File

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