Commands: fixed crash if description wasn't specified
This commit is contained in:
parent
977ec7558f
commit
fcb0b570d8
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ VMFMod.command = function (self, command_name, command_description, command_func
|
||||||
_commands[command_name] = {
|
_commands[command_name] = {
|
||||||
mod = self,
|
mod = self,
|
||||||
exec_function = command_function,
|
exec_function = command_function,
|
||||||
description = command_description,
|
description = command_description or "",
|
||||||
is_enabled = true
|
is_enabled = true
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue