diff --git a/engine/client/textedit.c b/engine/client/textedit.c index e39f052d0..608c362c9 100644 --- a/engine/client/textedit.c +++ b/engine/client/textedit.c @@ -1028,6 +1028,12 @@ int QCLibEditor(progfuncs_t *prfncs, char *filename, int line, int nump, char ** void Editor_f(void) { + if (Cmd_Argc() != 2) + { + Con_Printf("edit \n"); + return; + } + if (editoractive) EditorSaveFile(OpenEditorFile); EditorOpenFile(Cmd_Argv(1));