REALLY fixed bug this time (thanks fsfod and mahnsawce)

This commit is contained in:
David Anderson 2004-08-13 11:20:05 +00:00
parent f12680f179
commit 9f1bb9345c

View File

@ -619,7 +619,7 @@ AMX *MNF_GetAmxScript(int id)
while (iter && id--) while (iter && id--)
++iter; ++iter;
if ((*iter) == NULL) if (iter == NULL)
return NULL; return NULL;
return (*iter).getAMX(); return (*iter).getAMX();
} }
@ -630,7 +630,7 @@ const char *MNF_GetAmxScriptName(int id)
while (iter && id--) while (iter && id--)
++iter; ++iter;
if ((*iter) == NULL) if (iter == NULL)
return NULL; return NULL;
return (*iter).getName(); return (*iter).getName();
} }