mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Fix delete and comparison warning
This commit is contained in:
parent
6e3c89c217
commit
e74153558b
2 changed files with 2 additions and 2 deletions
|
@ -207,7 +207,7 @@ list<DWinding*> *CreateTrace( dleaf_t *leaf, int c, vis_header *header, byte *vi
|
|||
}
|
||||
}
|
||||
|
||||
delete repeatlist;
|
||||
delete[] repeatlist;
|
||||
|
||||
return pointlist;
|
||||
}
|
||||
|
|
|
@ -235,7 +235,7 @@ void CPortals::Load(){
|
|||
return;
|
||||
}
|
||||
|
||||
if ( portal_count < 0 ) {
|
||||
if ( portal_count <= 0 ) {
|
||||
fclose( in );
|
||||
|
||||
portal_count = 0;
|
||||
|
|
Loading…
Reference in a new issue