From 3d3b1bc443ebaee27703795e6dd83c014de911a8 Mon Sep 17 00:00:00 2001 From: Alexander van Gessel Date: Sun, 19 Nov 2017 18:35:56 +0100 Subject: [PATCH] Partially revert ca5144227707 Taking an argument, especially by reference, does not require a full type. Including unit.hpp in make.hpp utterly defeats the point of make.hpp's existence. --- src/units/make.cpp | 1 + src/units/make.hpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/units/make.cpp b/src/units/make.cpp index 3c8f379ef62c..5d67f09cbc3f 100644 --- a/src/units/make.cpp +++ b/src/units/make.cpp @@ -13,6 +13,7 @@ */ #include "units/make.hpp" +#include "units/unit.hpp" unit_ptr make_unit_ptr(const config& cfg, bool use_traits, const vconfig* vcfg){ return { new unit(cfg, use_traits, vcfg) }; diff --git a/src/units/make.hpp b/src/units/make.hpp index 43d6539a4e67..6a8b138d0183 100644 --- a/src/units/make.hpp +++ b/src/units/make.hpp @@ -14,7 +14,6 @@ #include "units/race.hpp" #include "units/ptr.hpp" -#include "units/unit.hpp" class config; class unit_type;