From 1425b1bcf32be0db377fc3dc4654563d392eeb16 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Sun, 3 Sep 2023 11:35:30 +0000 Subject: [PATCH] fix: invert already sign condition --- ex01/src/Form.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ex01/src/Form.cpp b/ex01/src/Form.cpp index 2b1d92a..eb74d09 100644 --- a/ex01/src/Form.cpp +++ b/ex01/src/Form.cpp @@ -44,7 +44,7 @@ Form& Form::operator=(const Form& src) void Form::beSigned(const Bureaucrat &bureaucrat) { - if (this->_signed == false) + if (this->_signed == true) { std::cout << bureaucrat.getName() << " couldn't sign " << this->_name << " because " << "the form is already sign" << std::endl; return;