Partially revert ca51442277

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.
This commit is contained in:
Alexander van Gessel 2017-11-19 18:35:56 +01:00
parent ca51442277
commit 3d3b1bc443
2 changed files with 1 additions and 1 deletions

View file

@ -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) };

View file

@ -14,7 +14,6 @@
#include "units/race.hpp"
#include "units/ptr.hpp"
#include "units/unit.hpp"
class config;
class unit_type;