diff --git a/Source/script.cpp b/Source/script.cpp index db3b21f3..93076a9a 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -4316,6 +4316,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) case TOK_CREATEFONT: ent.which=EW_CREATEFONT; ent.offsets[0]=GetUserVarIndex(line, 1); + if (ent.offsets[0] < 0) PRINTHELP() ent.offsets[1]=add_string(line.gettoken_str(2)); SCRIPT_MSG("CreateFont: output=%s \"%s\"",line.gettoken_str(1),line.gettoken_str(2)); {