Skip to content

Commit

Permalink
Fix compile errors from 669ba88
Browse files Browse the repository at this point in the history
Sorry, you can't avoid including unit.hpp in all cases.

But, it's still a lot less than it used to be.
  • Loading branch information
GregoryLundberg committed Nov 30, 2017
1 parent 4eaa0e1 commit 41597ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/units/make.cpp
Expand Up @@ -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) };
Expand Down
3 changes: 3 additions & 0 deletions src/units/make.hpp
Expand Up @@ -13,6 +13,9 @@
*/

#include "units/race.hpp"
#include "units/ptr.hpp"
#include "units/unit.hpp"

class config;
class unit_type;
class vconfig;
Expand Down

0 comments on commit 41597ba

Please sign in to comment.