Skip to content

Commit

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

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

/* 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 7466b32

Please sign in to comment.