minor vector optimization

This commit is contained in:
Jack Andersen 2015-07-15 17:20:36 -10:00
parent cbea8fe764
commit bcf67ca8eb
1 changed files with 2 additions and 0 deletions

View File

@ -134,6 +134,8 @@ class PartitionWii : public DiscBase::IPartition
titleVersion = SBig(titleVersion);
numContents = SBig(numContents);
bootIdx = SBig(bootIdx);
contents.clear();
contents.reserve(numContents);
for (uint16_t c=0 ; c<numContents ; ++c)
{
contents.emplace_back();