Skip to content

Commit

Permalink
fix missing processObjectFlag check in ProcessFrozenObjects.
Browse files Browse the repository at this point in the history
  • Loading branch information
LittlePlanetCD committed Apr 13, 2024
1 parent adb2aab commit 53c7b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RSDKv4/Object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void ProcessFrozenObjects()
default: break;
}

if (entity->type > OBJ_TYPE_BLANKOBJECT) {
if (processObjectFlag[objectEntityPos] && entity->type > OBJ_TYPE_BLANKOBJECT) {
ObjectScript *scriptInfo = &objectScriptList[entity->type];
if (scriptCode[scriptInfo->eventUpdate.scriptCodePtr] > 0 && entity->priority == PRIORITY_ALWAYS)
ProcessScript(scriptInfo->eventUpdate.scriptCodePtr, scriptInfo->eventUpdate.jumpTablePtr, EVENT_MAIN);
Expand Down

0 comments on commit 53c7b88

Please sign in to comment.