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:
parent
ca51442277
commit
3d3b1bc443
2 changed files with 1 additions and 1 deletions
|
@ -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) };
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "units/race.hpp"
|
||||
#include "units/ptr.hpp"
|
||||
#include "units/unit.hpp"
|
||||
|
||||
class config;
|
||||
class unit_type;
|
||||
|
|
Loading…
Add table
Reference in a new issue