diff --git a/src/scripting/backend/codegen.cpp b/src/scripting/backend/codegen.cpp index 210bbdafd..af3ff1bbb 100644 --- a/src/scripting/backend/codegen.cpp +++ b/src/scripting/backend/codegen.cpp @@ -2563,7 +2563,7 @@ ExpEmit FxAssign::Emit(VMFunctionBuilder *build) if (IsBitWrite == -1) { - build->Emit(ValueType->GetStoreOp(), pointer.RegNum, result.RegNum, build->GetConstantInt(0)); + build->Emit(Base->ValueType->GetStoreOp(), pointer.RegNum, result.RegNum, build->GetConstantInt(0)); } else { diff --git a/src/scripting/backend/vmbuilder.cpp b/src/scripting/backend/vmbuilder.cpp index 899c4aee2..4ed4f5c4e 100644 --- a/src/scripting/backend/vmbuilder.cpp +++ b/src/scripting/backend/vmbuilder.cpp @@ -570,8 +570,6 @@ size_t VMFunctionBuilder::Emit(int opcode, int opa, int opb, int opc) assert(opb >= 0); assert(opc >= 0); - assert(opcode != OP_NOP); - // The following were just asserts, meaning this would silently create broken code if there was an overflow // if this happened in a release build. Not good. // These are critical errors that need to be reported to the user.