From d17edbe25c2e896d6b0f737ae1cd3ea92505598c Mon Sep 17 00:00:00 2001 From: Nathan Date: Fri, 14 Mar 2025 22:23:32 -0500 Subject: [PATCH] using --end() for self --- src/App.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {