fixed a very minor parsing bug in plugins.ini

This commit is contained in:
David Anderson
2006-06-05 18:48:01 +00:00
parent b4450bbee5
commit 36ec7bc818
2 changed files with 28 additions and 2 deletions

View File

@ -478,8 +478,11 @@ int CheckModules(AMX *amx, char error[128])
if (!found)
{
if (pHandler->HandleModule(buffer, (expect == LibType_Class)))
found = true;
if ((expect != LibType_Library) || !LoadModule(buffer, PT_ANYTIME))
{
if (pHandler->HandleModule(buffer, (expect == LibType_Class)))
found = true;
}
}
if (!found)