Skip to content

Commit

Permalink
Add missing import to c++ stats module
Browse files Browse the repository at this point in the history
  • Loading branch information
domdom committed Aug 18, 2024
1 parent 7cd3967 commit de551cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flecs.h
Original file line number Diff line number Diff line change
Expand Up @@ -31759,6 +31759,8 @@ inline units::units(flecs::world& world) {
namespace flecs {

inline stats::stats(flecs::world& world) {
world.import<flecs::units>();

/* Import C module */
FlecsStatsImport(world);

Expand Down
4 changes: 4 additions & 0 deletions include/flecs/addons/cpp/mixins/stats/impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
namespace flecs {

inline stats::stats(flecs::world& world) {
#ifdef FLECS_UNITS
world.import<flecs::units>();
#endif

/* Import C module */
FlecsStatsImport(world);

Expand Down

0 comments on commit de551cd

Please sign in to comment.