From 189290dcfdd7a5b47e73cc51ef62868b56d9d7a2 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 5 Apr 2022 12:56:02 +0200 Subject: [PATCH] Include univers.hpp dans le .hpp de la classe Organisme --- includes/organisme.hpp | 2 ++ src/organisme.cpp | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/organisme.hpp b/includes/organisme.hpp index 6f69a29..99dae65 100644 --- a/includes/organisme.hpp +++ b/includes/organisme.hpp @@ -3,6 +3,8 @@ #include +#include "../includes/univers.hpp" + class Organisme { inline static int __totalID; // permet d'incrémenter de 1 l'ID de chaque organisme diff --git a/src/organisme.cpp b/src/organisme.cpp index b8f2f44..1caeeb2 100644 --- a/src/organisme.cpp +++ b/src/organisme.cpp @@ -1,4 +1,3 @@ -#include "../includes/univers.hpp" #include "../includes/organisme.hpp" Organisme::Organisme(int universID, int index): _universID(universID), _index(index), ID(__totalID + 1) {