diff --git a/noise/fractal/runtime.hpp b/noise/fractal/runtime.hpp index 8cf3b6e1..e54f1e2f 100644 --- a/noise/fractal/runtime.hpp +++ b/noise/fractal/runtime.hpp @@ -149,13 +149,15 @@ namespace util { namespace noise { namespace fractal { public: template - void + F& reset (seed_t _seed) { using fractal_t = F; using child_t = child; - m_child.reset (new child_t (_seed)); + child_t *out; + m_child.reset (out= new child_t (_seed)); + return out->data; } }; } } }