mirror of https://github.com/AxioDL/metaforce.git
CScriptMazeNode: Always free CMazeState
This commit is contained in:
parent
a35bfc49b5
commit
dbbb3cdc4e
|
@ -173,11 +173,13 @@ void CScriptMazeNode::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, C
|
||||||
sDebugCellPos[xe8_col + xec_row * skMazeCols] = GetTranslation() - zeus::CVector3f{1.1875f, -0.1215f, 1.2187f};
|
sDebugCellPos[xe8_col + xec_row * skMazeCols] = GetTranslation() - zeus::CVector3f{1.1875f, -0.1215f, 1.2187f};
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
} else if (msg == EScriptObjectMessage::Deleted) {
|
}
|
||||||
|
}
|
||||||
|
// URDE change: used to be in the above if branch
|
||||||
|
if (msg == EScriptObjectMessage::Deleted) {
|
||||||
mgr.ClearCurrentMaze();
|
mgr.ClearCurrentMaze();
|
||||||
Reset(mgr);
|
Reset(mgr);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
CActor::AcceptScriptMsg(msg, uid, mgr);
|
CActor::AcceptScriptMsg(msg, uid, mgr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue