LFN
LFN copied to clipboard
amx_FindPublic hooks from other plugins are ignored
When loaded after other plugins, the amx_FindPublic
hook ignores their custom implementations and handles the calls in the standard way. The reason is that the base amx_FindPublic
must not be called, overwise a call to amx_GetPublic
would soon corrupt the stack (where a fixed-length array is normally allocated for the function name).
There is no other way than to load LFN before these plugins, as calling their implementation could still result in a call to the base implementation (in case the function is not found), but perhaps a warning should be produced that other hooks are overwritten.