diff --git a/metis-lang/src/main/kotlin/io/github/seggan/metis/runtime/chunk/Chunk.kt b/metis-lang/src/main/kotlin/io/github/seggan/metis/runtime/chunk/Chunk.kt index 00082bf..86858fb 100644 --- a/metis-lang/src/main/kotlin/io/github/seggan/metis/runtime/chunk/Chunk.kt +++ b/metis-lang/src/main/kotlin/io/github/seggan/metis/runtime/chunk/Chunk.kt @@ -227,6 +227,7 @@ class Chunk( } else { loaded!! } + loaded = null if (insn.global) { state.globals[insn.name] = module } else {