Skip to content

Commit

Permalink
Properly correct the opcode in OP_LOAD_STORE_SELF_VAR when self is NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
smallmodel authored Jan 17, 2025
1 parent 87e5b6d commit 6b02457
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/script/scriptvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 6b02457

Please sign in to comment.