fix form of delete used

This commit is contained in:
Isaac Connor 2017-06-14 10:54:21 -04:00
parent b51d885f66
commit a4b3f6b41a
1 changed files with 2 additions and 2 deletions

View File

@ -792,7 +792,7 @@ bool Zone::ParseZoneString( const char *zone_string, int &zone_id, int &colour,
zone_id = strtol( str, 0, 10 );
Debug( 3, "Got zone %d from zone string", zone_id );
if ( !ws ) {
delete str_ptr;
delete[] str_ptr;
return( true );
}
@ -806,7 +806,7 @@ bool Zone::ParseZoneString( const char *zone_string, int &zone_id, int &colour,
colour = strtol( str, 0, 16 );
Debug( 3, "Got colour %06x from zone string", colour );
if ( !ws ) {
delete str_ptr;
delete[] str_ptr;
return( true );
}
*ws = '\0';