diff --git a/vmf/scripts/mods/vmf/modules/core/misc.lua b/vmf/scripts/mods/vmf/modules/core/misc.lua index c09e09e..3d45c99 100644 --- a/vmf/scripts/mods/vmf/modules/core/misc.lua +++ b/vmf/scripts/mods/vmf/modules/core/misc.lua @@ -4,8 +4,7 @@ local vmf = get_mod("VMF") -- ##### VMF internal functions and variables ########################################################################## -- ##################################################################################################################### -vmf.check_wrong_argument_type = function(mod, vmf_function_name, argument_name, argument, ...) - +function vmf.check_wrong_argument_type(mod, vmf_function_name, argument_name, argument, ...) local allowed_types = {...} local argument_type = type(argument) @@ -15,8 +14,7 @@ vmf.check_wrong_argument_type = function(mod, vmf_function_name, argument_name, end end - mod:error("(%s): argument '%s' should have the '%s' type, not '%s'", - vmf_function_name, argument_name, table.concat(allowed_types, "/"), argument_type) - + mod:error("(%s): argument '%s' should have the '%s' type, not '%s'", vmf_function_name, argument_name, + table.concat(allowed_types, "/"), argument_type) return true end \ No newline at end of file