From fcb0b570d84fd7c9ee18ddfda97438853f9485f1 Mon Sep 17 00:00:00 2001 From: bi Date: Fri, 8 Jun 2018 14:28:05 +0300 Subject: [PATCH] Commands: fixed crash if description wasn't specified --- vmf/scripts/mods/vmf/modules/core/commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmf/scripts/mods/vmf/modules/core/commands.lua b/vmf/scripts/mods/vmf/modules/core/commands.lua index 14bb63e..8fad3fa 100644 --- a/vmf/scripts/mods/vmf/modules/core/commands.lua +++ b/vmf/scripts/mods/vmf/modules/core/commands.lua @@ -39,7 +39,7 @@ VMFMod.command = function (self, command_name, command_description, command_func _commands[command_name] = { mod = self, exec_function = command_function, - description = command_description, + description = command_description or "", is_enabled = true } end