From 79bb453bb6bec272d19c4ec0cfe522a5e5d50f2c Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Thu, 30 Jul 2015 15:59:01 +0300 Subject: [PATCH] Return an error on Err_OldFile instead of falling through to default case --- amxmodx/modules.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/amxmodx/modules.cpp b/amxmodx/modules.cpp index bb5014d8..fd47eac2 100755 --- a/amxmodx/modules.cpp +++ b/amxmodx/modules.cpp @@ -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);