Fixed a warning about unsigned int comparison - probably was a real issue.
This commit is contained in:
parent
ab676060fa
commit
9060fbf4b5
@ -114,8 +114,12 @@ void cPluginManager::ReloadPluginsNow(cIniFile & a_SettingsIni)
|
||||
|
||||
cServer::BindBuiltInConsoleCommands();
|
||||
|
||||
unsigned int KeyNum = a_SettingsIni.FindKey("Plugins");
|
||||
// Check if the Plugins section exists.
|
||||
int KeyNum = a_SettingsIni.FindKey("Plugins");
|
||||
|
||||
// If it does, how many plugins are there?
|
||||
unsigned int NumPlugins = ((KeyNum != -1) ? (a_SettingsIni.GetNumValues(KeyNum)) : 0);
|
||||
|
||||
if (KeyNum == -1)
|
||||
{
|
||||
InsertDefaultPlugins(a_SettingsIni);
|
||||
|
Loading…
Reference in New Issue
Block a user