diff --git a/src/quest_editor/scripting/assembly_worker.ts b/src/quest_editor/scripting/assembly_worker.ts index db0e4f0d..18d767f7 100644 --- a/src/quest_editor/scripting/assembly_worker.ts +++ b/src/quest_editor/scripting/assembly_worker.ts @@ -111,7 +111,7 @@ function signature_help(message: SignatureHelpInput): void { let opcode: Opcode | undefined; let active_param = -1; - if (message.line_no < lines.length) { + if (message.line_no <= lines.length) { const line = lines[message.line_no - 1]; const lexer = new AssemblyLexer(); const tokens = lexer.tokenize_line(line);