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/ZPath.cpp | |
| parent | b5bffbf8215aa72cffc1d7403238b946bd1db262 (diff) | |
Done?
Diffstat (limited to 'ZAPD/ZPath.cpp')
| -rw-r--r-- | ZAPD/ZPath.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ZAPD/ZPath.cpp b/ZAPD/ZPath.cpp index e19513d..0dac87a 100644 --- a/ZAPD/ZPath.cpp +++ b/ZAPD/ZPath.cpp @@ -35,6 +35,7 @@ void ZPath::ParseRawData() uint32_t currentPtr = rawDataIndex; + pathways.reserve(numPaths); for (size_t pathIndex = 0; pathIndex < numPaths; pathIndex++) { PathwayEntry path(parent); @@ -125,6 +126,7 @@ void PathwayEntry::ParseRawData() uint32_t currentPtr = GETSEGOFFSET(listSegmentAddress); + points.reserve(numPoints); for (int32_t i = 0; i < numPoints; i++) { ZVector vec(parent); |
