diff --git a/src/App.cpp b/src/App.cpp index e26a461..5dfdb27 100644 --- a/src/App.cpp +++ b/src/App.cpp @@ -71,7 +71,8 @@ void App::load(std::string lib) { } modules.push_back(m); - m->setSelf(modules.rbegin().base()); + m->setSelf(--modules.end()); + modules.end()++; } void App::unload(decltype(Module::self) it) {