Use GetIdListForScript in CScriptSpecialFunction::AcceptScriptMsg

This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-03 19:30:33 +03:00
parent 2a8278c1b3
commit 3fd463fc8a
No known key found for this signature in database
GPG Key ID: E224F951761145F8
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); }
} }
} }