mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
REALLY fixed bug this time (thanks fsfod and mahnsawce)
This commit is contained in:
parent
f12680f179
commit
9f1bb9345c
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user