CScriptMazeNode: Minor fix from matching decomp

This commit is contained in:
Luke Street 2022-10-09 13:14:36 -04:00
parent 2e3495ec0b
commit 03a3fd8570
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ void CScriptMazeNode::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, C
std::any_of(x12c_puddleObjectIds.cbegin(), x12c_puddleObjectIds.cend(), [=](auto v) { return v == uid; })) {
for (const auto& id : x12c_puddleObjectIds) {
if (auto* ent = mgr.ObjectById(id)) {
if (ent->GetActive()) {
if (!ent->GetActive()) {
mgr.SendScriptMsg(ent, GetUniqueId(), EScriptObjectMessage::Activate);
} else {
mgr.FreeScriptObject(ent->GetUniqueId());