mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-25 02:41:22 +00:00
Merge pull request #470 from Pan7/fixwarn1
Fix delete and comparison warning
This commit is contained in:
commit
967d2a88f6
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