dwarfvet log only if enabled (fix #1504)

develop
Pierre-David Belanger 2020-02-24 13:54:47 -05:00
parent e26787604a
commit 97a31c68a8
No known key found for this signature in database
GPG Key ID: 8B8AE4669D82623A
1 changed files with 3 additions and 1 deletions

@ -414,7 +414,9 @@ void AnimalHospital::processPatients(color_ostream &out) {
static vector<AnimalHospital*> animal_hospital_zones;
void delete_animal_hospital_vector(color_ostream &out) {
out.print("Clearing all animal hospitals\n");
if (dwarfvet_enabled) {
out.print("Clearing all animal hospitals\n");
}
for (vector<AnimalHospital*>::iterator animal_hospital = animal_hospital_zones.begin(); animal_hospital != animal_hospital_zones.end(); animal_hospital++) {
delete (*animal_hospital);
}