From: Lukas Jiriste Date: Fri, 10 Jan 2025 15:33:49 +0000 (+0100) Subject: Swap Scav- and ClapTrap in ex01 main X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;p=42%2FCPP_Module_03 Swap Scav- and ClapTrap in ex01 main They were obviously swapped as ClapTrap does not have the GuardGate method. The swap was needed for compilation to complete. --- diff --git a/ex01/main.cpp b/ex01/main.cpp index 38dcebb..90e2410 100644 --- a/ex01/main.cpp +++ b/ex01/main.cpp @@ -3,8 +3,8 @@ int main() { - ClapTrap a("Alen"); - ScavTrap b("Boris"); + ScavTrap a("Alen"); + ClapTrap b("Boris"); b.attack("foo"); b.takeDamage(9);