ScriptLoader: Zero out itemCounts

This commit is contained in:
Luke Street 2020-04-01 21:16:52 -04:00
parent a4a7888338
commit de59ea45eb
1 changed files with 1 additions and 1 deletions

View File

@ -838,7 +838,7 @@ CEntity* ScriptLoader::LoadSpawnPoint(CStateManager& mgr, CInputStream& in, int
rotation.readBig(in); rotation.readBig(in);
rstl::reserved_vector<u32, int(CPlayerState::EItemType::Max)> itemCounts; rstl::reserved_vector<u32, int(CPlayerState::EItemType::Max)> itemCounts;
itemCounts.resize(size_t(CPlayerState::EItemType::Max)); itemCounts.resize(size_t(CPlayerState::EItemType::Max), 0);
for (int i = 0; i < propCount - 6; ++i) for (int i = 0; i < propCount - 6; ++i)
itemCounts[i] = in.readUint32Big(); itemCounts[i] = in.readUint32Big();