summaryrefslogtreecommitdiff
path: root/ZAPD/ZRoom/Commands/SetObjectList.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/SetObjectList.cpp
parentb5bffbf8215aa72cffc1d7403238b946bd1db262 (diff)
Done?
Diffstat (limited to 'ZAPD/ZRoom/Commands/SetObjectList.cpp')
-rw-r--r--ZAPD/ZRoom/Commands/SetObjectList.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ZAPD/ZRoom/Commands/SetObjectList.cpp b/ZAPD/ZRoom/Commands/SetObjectList.cpp
index fdd41e6..3048aa2 100644
--- a/ZAPD/ZRoom/Commands/SetObjectList.cpp
+++ b/ZAPD/ZRoom/Commands/SetObjectList.cpp
@@ -17,6 +17,7 @@ void SetObjectList::ParseRawData()
uint8_t objectCnt = parent->GetRawData().at(rawDataIndex + 1);
uint32_t currentPtr = segmentOffset;
+ objects.reserve(objectCnt);
for (uint8_t i = 0; i < objectCnt; i++)
{
uint16_t objectIndex = BitConverter::ToInt16BE(parent->GetRawData(), currentPtr);