Properly correct the opcode in OP_LOAD_STORE_SELF_VAR when self is NULL

This commit is contained in:
smallmodel authored and GitHub committed 2025-01-17 16:49:38 +01:00
1 parent 87e5b6d41e
commit 6b02457190
1 file changed
+1
+1
View File
@@ -1534,6 +1534,7 @@ void ScriptVM::Execute(ScriptVariable *data, int dataSize, str label)
case OP_LOAD_STORE_SELF_VAR:
if (!m_ScriptClass->m_Self) {
m_CodePos += sizeof(unsigned int);
ScriptError("self is NULL");
}