Typo and comment. One more beta addr

This commit is contained in:
disinvite 2024-09-05 17:17:23 -04:00
parent 6812cb2308
commit d238f59a9b
2 changed files with 5 additions and 1 deletions

View File

@ -158,6 +158,9 @@ class MxStreamer : public MxCore {
// TEMPLATE: BETA10 0x10147020
// list<MxStreamController *,allocator<MxStreamController *> >::iterator::operator==
// TEMPLATE: BETA10 0x10147060
// list<MxStreamController *,allocator<MxStreamController *> >::push_back
// TEMPLATE: BETA10 0x10147200
// ??9@YAHABViterator@?$list@PAVMxStreamController@@V?$allocator@PAVMxStreamController@@@@@@0@Z

View File

@ -156,6 +156,7 @@ MxResult MxStreamer::AddStreamControllerToOpenList(MxStreamController* p_stream)
assert(it == m_openStreams.end());
// DECOMP: Retail is missing the optimization that skips this check if find() reaches the end.
if (it == m_openStreams.end()) {
m_openStreams.push_back(p_stream);
return SUCCESS;
@ -199,7 +200,7 @@ MxResult MxStreamer::DeleteObject(MxDSAction* p_dsAction)
MxResult result = FAILURE;
for (list<MxStreamController*>::iterator it = m_openStreams.begin(); it != m_openStreams.end(); it++) {
// TODO: MxAtomId operator== used here for NULL test. BETA10 0x1007dc20
if (p_dsAction->GetAtomId().GetInternal() != NULL || p_dsAction->GetAtomId() == (*it)->GetAtom()) {
if (p_dsAction->GetAtomId().GetInternal() == NULL || p_dsAction->GetAtomId() == (*it)->GetAtom()) {
tempAction.SetAtomId((*it)->GetAtom());
result = (*it)->VTable0x24(&tempAction);
}