Remove unnecessary usages of sead::StorageFor

Turns out they are just value-initialised aggregates.
This commit is contained in:
Léo Lam
2022-02-08 21:34:53 +01:00
parent d3902a9ad4
commit d893fd5ead
16 changed files with 112 additions and 147 deletions
+1 -1
View File
@@ -1039,7 +1039,7 @@ void Manager::syncUpdate(const char* data) {
void Manager::recordFlagChange(u32 platform_core_id, TriggerParam* tparam, u8 type, const s32& idx,
const s32& sub_idx) {
auto& buffer = tparam->mFlagChangeRecords[platform_core_id].ref();
auto& buffer = tparam->mFlagChangeRecords[platform_core_id];
buffer[tparam->mFlagChangeRecordIndices[platform_core_id]].type.mValue = type;
buffer[tparam->mFlagChangeRecordIndices[platform_core_id]].index = idx;
buffer[tparam->mFlagChangeRecordIndices[platform_core_id]].sub_index = sub_idx;