From 824e9ca421bbf2253dcb57f4b12358b982f60f84 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Wed, 9 Aug 2023 14:17:52 +0000 Subject: [PATCH] fix cerr --- ex02/src/ScavTrap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ex02/src/ScavTrap.cpp b/ex02/src/ScavTrap.cpp index d0666b6..e6cd5f2 100644 --- a/ex02/src/ScavTrap.cpp +++ b/ex02/src/ScavTrap.cpp @@ -52,9 +52,9 @@ void ScavTrap::attack(const std::string& target) { if (this->_life == 0 || this->_energy == 0) { - std::cerr << "error: ScavTrap " << this->_name << " dead" << std::endl; + std::cout << "error: ScavTrap " << this->_name << " dead" << std::endl; return; } this->_energy--; - std::cerr << "ScavTrap " << this->_name << " attacks " << target << ", causing " << this->_damage << " points of damage!" << std::endl; + std::cout << "ScavTrap " << this->_name << " attacks " << target << ", causing " << this->_damage << " points of damage!" << std::endl; }