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

bug fixes with MP1's spec

This commit is contained in:
Jack Andersen
2015-07-11 18:26:26 -10:00
parent c1f4f31e6f
commit 975429f3c6
8 changed files with 37 additions and 26 deletions

View File

@@ -34,6 +34,12 @@ void PAK::read(Athena::io::IStreamReader& reader)
m_idMap[m_entries.back().id] = &m_entries.back();
}
atUint32 realCount = 0;
for (Entry& entry : m_entries)
{
++realCount;
}
m_nameMap.clear();
m_nameMap.reserve(nameCount);
for (NameEntry& entry : m_nameEntries)