diff --git a/ostd/coroutine.hh b/ostd/coroutine.hh index 9b33bd8..e94b247 100644 --- a/ostd/coroutine.hh +++ b/ostd/coroutine.hh @@ -782,9 +782,9 @@ public: if (this->is_dead()) { throw coroutine_error{"dead coroutine"}; } - this->set_args(&args...); + p_stor.set_args(&args...); base_t::call(); - return this->get_result(); + return p_stor.get_result(); } /** @brief Calls the coroutine.