[Settings] check g_PluginSettings.RegisterSetting is not null in RegisterSetting

This commit is contained in:
zilmar 2016-05-01 12:48:44 +10:00
parent 740469d26e
commit 69955a0aa9
1 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,10 @@ void SetModuleName(const char * Name)
void RegisterSetting(short SettingID, SETTING_DATA_TYPE Type, const char * Name, const char * Category,
unsigned int DefaultDW, const char * DefaultStr)
{
if (g_PluginSettings.RegisterSetting == NULL)
{
return;
}
int DefaultID = g_PluginSettings.NoDefault;
SettingLocation Location = (SettingLocation)g_PluginSettings.DefaultLocation;
char FullCategory[400];