Properly correct the opcode in OP_LOAD_STORE_SELF_VAR when self is NULL

This commit is contained in:
smallmodel 2025-01-17 16:49:38 +01:00 committed by GitHub
parent 87e5b6d41e
commit 6b02457190
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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");
}