Fixed logic mistake when adding modues to log filter.

This commit is contained in:
richard 2009-06-12 15:54:05 +02:00
parent ae37110c7d
commit 0a72dc2100

View File

@ -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);