diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-02 05:42:30 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-02 22:35:38 +0200 |
commit | da156d254f12426c565825f74e983f0204ba3a90 (patch) | |
tree | af461fad4c9b36c174fb6694b8ab775e2eba9cd6 /src/world.hpp | |
parent | 9d35200ea54a0729d489dc2c76823a2a13cdcac4 (diff) |
b
Diffstat (limited to 'src/world.hpp')
-rw-r--r-- | src/world.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/world.hpp b/src/world.hpp index 52cb1f64..78fdd690 100644 --- a/src/world.hpp +++ b/src/world.hpp @@ -86,7 +86,7 @@ public: T{object_id(), c, std::declval<Xs&&>()...}; std::is_base_of_v<object, T>; } - std::shared_ptr<T> make_object(object_id id, global_coords pos, Xs&&... xs) // todo! replace 2nd arg with chunk& + std::shared_ptr<T> make_object(object_id id, global_coords pos, Xs&&... xs) { auto ret = std::shared_ptr<T>(new T{id, operator[](pos.chunk3()), forward<Xs>(xs)...}); do_make_object(std::static_pointer_cast<object>(ret), pos, sorted); |