summaryrefslogtreecommitdiff
path: root/ZAPD/ZRoom/Commands/SetMesh.cpp
diff options
context:
space:
mode:
authorLouis <35883445+louist103@users.noreply.github.com>2022-06-27 12:32:52 -0400
committerNicholas Estelami <NEstelami@users.noreply.github.com>2022-07-30 22:24:40 -0400
commit0595f813a67315bf6acdc7fcf5cc406ab277d9b1 (patch)
tree39f175b546cb21ab78ff519cf5254b44eb235664 /ZAPD/ZRoom/Commands/SetMesh.cpp
parentb5bffbf8215aa72cffc1d7403238b946bd1db262 (diff)
Done?
Diffstat (limited to 'ZAPD/ZRoom/Commands/SetMesh.cpp')
-rw-r--r--ZAPD/ZRoom/Commands/SetMesh.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ZAPD/ZRoom/Commands/SetMesh.cpp b/ZAPD/ZRoom/Commands/SetMesh.cpp
index ba0bbe2..89c8c8c 100644
--- a/ZAPD/ZRoom/Commands/SetMesh.cpp
+++ b/ZAPD/ZRoom/Commands/SetMesh.cpp
@@ -442,6 +442,8 @@ void PolygonType1::DeclareReferences(const std::string& prefix)
{
listAddress = Seg2Filespace(list, parent->baseAddress);
uint32_t auxPtr = listAddress;
+
+ multiList.reserve(count);
for (size_t i = 0; i < count; ++i)
{
BgImage bg(false, prefix, auxPtr, parent);
@@ -545,6 +547,8 @@ void PolygonType2::ParseRawData()
end = BitConverter::ToUInt32BE(rawData, rawDataIndex + 0x08);
uint32_t currentPtr = GETSEGOFFSET(start);
+
+ polyDLists.reserve(num);
for (size_t i = 0; i < num; i++)
{
PolygonDlist entry(parent);