From e74153558be90e2e22c4dbcd03402cafd79632a2 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Thu, 27 Apr 2017 17:56:57 +0200 Subject: [PATCH] Fix delete and comparison warning --- contrib/bobtoolz/visfind.cpp | 2 +- contrib/prtview/portals.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/bobtoolz/visfind.cpp b/contrib/bobtoolz/visfind.cpp index f8e327ab..c584d088 100644 --- a/contrib/bobtoolz/visfind.cpp +++ b/contrib/bobtoolz/visfind.cpp @@ -207,7 +207,7 @@ list *CreateTrace( dleaf_t *leaf, int c, vis_header *header, byte *vi } } - delete repeatlist; + delete[] repeatlist; return pointlist; } diff --git a/contrib/prtview/portals.cpp b/contrib/prtview/portals.cpp index d81589e2..ff67244a 100644 --- a/contrib/prtview/portals.cpp +++ b/contrib/prtview/portals.cpp @@ -235,7 +235,7 @@ void CPortals::Load(){ return; } - if ( portal_count < 0 ) { + if ( portal_count <= 0 ) { fclose( in ); portal_count = 0;