Fixed logic mistake when adding modues to log filter.
This commit is contained in:
parent
ae37110c7d
commit
0a72dc2100
@ -358,7 +358,7 @@ bool:LogModuleFilterAdd(LogModules:module)
|
||||
LogGetModuleNameString(modulename, sizeof(modulename), module, true);
|
||||
|
||||
// Check if the module isn't already is listed.
|
||||
if (FindStringInArray(hLogModuleFilter, modulename) >= 0)
|
||||
if (FindStringInArray(hLogModuleFilter, modulename) < 0)
|
||||
{
|
||||
// Add module to filter.
|
||||
PushArrayString(hLogModuleFilter, modulename);
|
||||
|
Loading…
Reference in New Issue
Block a user