diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-25 23:09:37 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-25 23:09:45 +0300 |
commit | 6e0d30721924f58ecbcd73d9bc53a8940ba0133a (patch) | |
tree | c10388b1494ffbc037c3ad15c5a578598a8cb70b | |
parent | a888d47eb5b2eeb5839cdd3f19a3e505c18519c8 (diff) |
fixes #1205 (menu editor crashes if there're unloaded plugin & zero langpack id)
-rw-r--r-- | src/mir_app/src/newplugins.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/newplugins.cpp b/src/mir_app/src/newplugins.cpp index b61886df5f..f9ff40338f 100644 --- a/src/mir_app/src/newplugins.cpp +++ b/src/mir_app/src/newplugins.cpp @@ -176,7 +176,7 @@ int LoadStdPlugins() char* GetPluginNameByLangpack(int _hLang)
{
- if (pluginList.getCount() == 0)
+ if (pluginList.getCount() == 0 || _hLang == 0)
return "";
for (auto &p : pluginList)
|