Swap Scav- and ClapTrap in ex01 main trunk
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 10 Jan 2025 15:33:49 +0000 (16:33 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 10 Jan 2025 15:33:49 +0000 (16:33 +0100)
They were obviously swapped as ClapTrap does not have the GuardGate
method. The swap was needed for compilation to complete.

ex01/main.cpp

index 38dcebb8017113850b67479852c07382cf872e72..90e24100389d536a48fb68b6fcc1d703a11daad3 100644 (file)
@@ -3,8 +3,8 @@
 
 int    main()
 {
 
 int    main()
 {
-       ClapTrap        a("Alen");
-       ScavTrap        b("Boris");
+       ScavTrap        a("Alen");
+       ClapTrap        b("Boris");
 
        b.attack("foo");
        b.takeDamage(9);
 
        b.attack("foo");
        b.takeDamage(9);