Under certain conditions the disassembler can replace main.scm offset with a local label. 1. the offset should be positive (i.e. reference some instruction in MAIN) 2. the script should have an instruction at the exact same offset. after disassembling and comping, the offset changes from X to -X. synthetic repro ``` {$CLEO} nop gosub 2 ``` after recompiling it becomes `gosub -2` This bug only affects standalone CLEO scripts/missions and not main.scm.
Activity
x87 commentedon Aug 5, 2025
fixed in 4.2.0