From ca51442277073ef667af7d65bb6ac324769009ba Mon Sep 17 00:00:00 2001 From: Gregory A Lundberg Date: Sun, 19 Nov 2017 11:22:01 -0600 Subject: [PATCH] Fix compile errors from 669ba885ceecad83562dc2084057232f7c7fca0f Sorry, you can't avoid including unit.hpp in all cases. But, it's still a lot less than it used to be. --- src/units/make.cpp | 3 +-- src/units/make.hpp | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/units/make.cpp b/src/units/make.cpp index c422decb162d..3c8f379ef62c 100644 --- a/src/units/make.cpp +++ b/src/units/make.cpp @@ -12,8 +12,7 @@ See the COPYING file for more details. */ -#include "units/ptr.hpp" -#include "units/unit.hpp" +#include "units/make.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 897664b73707..43d6539a4e67 100644 --- a/src/units/make.hpp +++ b/src/units/make.hpp @@ -13,6 +13,9 @@ */ #include "units/race.hpp" +#include "units/ptr.hpp" +#include "units/unit.hpp" + class config; class unit_type; class vconfig;