From 76aaafd4d03669cd4f6c2c858ed2a0fb87f1642b Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Wed, 10 Aug 2011 00:37:56 +0700 Subject: [PATCH] Unload modules in reverse order. --- Modules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules.cpp b/Modules.cpp index 2b0e46af..85db0283 100644 --- a/Modules.cpp +++ b/Modules.cpp @@ -598,7 +598,7 @@ CModules::~CModules() { void CModules::UnloadAll() { while (size()) { CString sRetMsg; - CString sModName = (*this)[0]->GetModName(); + CString sModName = back()->GetModName(); UnloadModule(sModName, sRetMsg); } }