From 6cb16a0178fc57939fa800abacde18f466c6ca4f Mon Sep 17 00:00:00 2001 From: DerelictDrone Date: Sun, 3 Dec 2023 18:57:10 -0600 Subject: [PATCH] Fix for CPG using idx and not IDX --- lua/wire/zvm/zvm_opcodes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/wire/zvm/zvm_opcodes.lua b/lua/wire/zvm/zvm_opcodes.lua index ad8a235..b878b9f 100644 --- a/lua/wire/zvm/zvm_opcodes.lua +++ b/lua/wire/zvm/zvm_opcodes.lua @@ -234,11 +234,11 @@ ZVM.OpcodeTable[28] = function(self) --SPG self:Dyn_Emit("end") end ZVM.OpcodeTable[29] = function(self) --CPG - self:Dyn_Emit("$L idx = math.floor($1 / 128)") + self:Dyn_Emit("$L IDX = math.floor($1 / 128)") self:Dyn_Emit("$L PAGE = VM:GetPageByIndex(IDX)") self:Dyn_EmitInterruptCheck() - self:Dyn_Emit("if VM.CurrentPage.RunLevel <= VM.Page[idx].RunLevel then") + self:Dyn_Emit("if VM.CurrentPage.RunLevel <= VM.Page[IDX].RunLevel then") self:Dyn_Emit("PAGE.Read = 1") self:Dyn_Emit("PAGE.Write = 1") self:Dyn_Emit("VM:SetPageByIndex(IDX)")