From 62be117da22b5159c8712537ac7ef135ff3007b8 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sun, 15 Nov 2020 17:24:46 +0100 Subject: Fixing cpp04/03 crash --- cpp04/ex03/Ice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp04/ex03/Ice.cpp') diff --git a/cpp04/ex03/Ice.cpp b/cpp04/ex03/Ice.cpp index 9df83b2..97225de 100644 --- a/cpp04/ex03/Ice.cpp +++ b/cpp04/ex03/Ice.cpp @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 16:32:27 by charles #+# #+# */ -/* Updated: 2020/11/13 14:06:33 by cacharle ### ########.fr */ +/* Updated: 2020/11/15 17:22:00 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -14,7 +14,7 @@ Ice::Ice() : AMateria("ice") {} -Ice::Ice(Ice const& other) : AMateria(other) {} +Ice::Ice(Ice const& other) : AMateria("ice") { *this = other; } Ice& Ice::operator=(Ice const& other) { -- cgit