From 28ea03f674f8aa637daaebdef70f6ff7bf5dbd50 Mon Sep 17 00:00:00 2001 From: Lukas Jiriste Date: Fri, 10 Jan 2025 16:33:49 +0100 Subject: [PATCH] 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. --- ex01/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2