2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:47:42 +00:00

Implement array-based rstl::reserved_vector

This commit is contained in:
Jack Andersen
2017-09-10 21:08:30 -10:00
parent 10092821c8
commit 27cee61765
7 changed files with 454 additions and 56 deletions

View File

@@ -86,7 +86,6 @@ CPlayerState::CPlayerState(CBitStreamReader& stream)
}
const auto& scanStates = g_MemoryCardSys->GetScanStates();
x170_scanTimes.reserve(scanStates.size());
for (const auto& state : scanStates)
{
float time = stream.ReadEncoded(1) ? 1.f : 0.f;
@@ -438,7 +437,6 @@ void CPlayerState::InitializeScanTimes()
return;
const auto& scanStates = g_MemoryCardSys->GetScanStates();
x170_scanTimes.reserve(scanStates.size());
for (const auto& state : scanStates)
x170_scanTimes.emplace_back(state.first, 0.f);
}