Use GetIdListForScript in CScriptSpecialFunction::AcceptScriptMsg

Former-commit-id: 3fd463fc8a
This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-03 19:30:33 +03:00
parent 01b02f2397
commit 250461ddec
1 changed files with 7 additions and 7 deletions

View File

@ -343,13 +343,13 @@ void CScriptSpecialFunction::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId
continue; continue;
} }
// GetIdListForScript seems very different between Ghidra and Metaforce const CStateManager::TIdListResult& it = mgr.GetIdListForScript(conn->x8_objId);
// const auto search = mgr.GetIdListForScript(conn->x8_objId); if (it.first != it.second) {
TUniqueId uid = it.first->second;
rstl::pair< TUniqueId, TUniqueId >* it; if (CActor* act = TCastToPtr< CActor >(mgr.ObjectById(uid))) {
if (CActor* act = TCastToPtr< CActor >(mgr.ObjectById(it->second))) { x198_ringControllers.push_back(SRingController(uid, 0.f, false));
x198_ringControllers.push_back(SRingController(it->second, 0.f, false)); act->RemoveMaterial(kMT_Occluder, mgr);
act->RemoveMaterial(kMT_Occluder, mgr); }
} }
} }