diff options
| author | Louis <35883445+louist103@users.noreply.github.com> | 2022-06-27 12:32:52 -0400 |
|---|---|---|
| committer | Nicholas Estelami <NEstelami@users.noreply.github.com> | 2022-07-30 22:24:40 -0400 |
| commit | 0595f813a67315bf6acdc7fcf5cc406ab277d9b1 (patch) | |
| tree | 39f175b546cb21ab78ff519cf5254b44eb235664 /ZAPD/ZArray.cpp | |
| parent | b5bffbf8215aa72cffc1d7403238b946bd1db262 (diff) | |
Done?
Diffstat (limited to 'ZAPD/ZArray.cpp')
| -rw-r--r-- | ZAPD/ZArray.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ZAPD/ZArray.cpp b/ZAPD/ZArray.cpp index d4f55d6..3cf2392 100644 --- a/ZAPD/ZArray.cpp +++ b/ZAPD/ZArray.cpp @@ -43,6 +43,7 @@ void ZArray::ParseXML(tinyxml2::XMLElement* reader) auto nodeMap = ZFile::GetNodeMap(); size_t childIndex = rawDataIndex; + resList.reserve(arrayCnt); for (size_t i = 0; i < arrayCnt; i++) { ZResource* res = nodeMap->at(childName)(parent); |
