Unload modules in reverse order.

This commit is contained in:
Alexey Sokolov authored and Kyle Fuller committed 2011-08-21 13:34:23 +01:00
1 parent c456d20b21
commit 76aaafd4d0
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}
}