From 8277d2c131f67a2aff2a01f9376c2ad2d4e63a6a Mon Sep 17 00:00:00 2001 From: Angel Ortigosa Perez Date: Sun, 26 Oct 2025 20:35:29 +0100 Subject: [PATCH] ScavTrap duplicate fix --- ex02/ScavTrap/ScavTrap.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/ex02/ScavTrap/ScavTrap.cpp b/ex02/ScavTrap/ScavTrap.cpp index e7d59cc..48b7633 100644 --- a/ex02/ScavTrap/ScavTrap.cpp +++ b/ex02/ScavTrap/ScavTrap.cpp @@ -30,17 +30,7 @@ ScavTrap::ScavTrap(std::string name) : ClapTrap(name) << std::endl; } -ScavTrap::ScavTrap(const ScavTrap &other) : ClapTrap(other) -{ - - this->name = other.name; - this->health = other.health; - this->energy = other.energy; - this->attackDamage = other.attackDamage; - - std::cout << "ScavTrap copy constructor called for " << this->name << std::endl; - -} +ScavTrap::ScavTrap(const ScavTrap &other) : ClapTrap(other) { } ScavTrap& ScavTrap::operator=(const ScavTrap &other) {