mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 23:08:03 +03:00
Return an error on Err_OldFile instead of falling through to default case
This commit is contained in:
parent
6b1650ae4f
commit
79bb453bb6
@ -173,6 +173,7 @@ int load_amxscript(AMX *amx, void **program, const char *filename, char error[64
|
||||
return (amx->error = AMX_ERR_NOTFOUND);
|
||||
case CAmxxReader::Err_OldFile:
|
||||
strcpy(error, "Plugin uses deprecated format. Update compiler");
|
||||
return (amx->error = AMX_ERR_FORMAT);
|
||||
default:
|
||||
strcpy(error, "Unknown error");
|
||||
return (amx->error = AMX_ERR_NOTFOUND);
|
||||
|
Loading…
x
Reference in New Issue
Block a user