diff options
Diffstat (limited to 'ZAPD/ZRoom/Commands/SetLightList.cpp')
| -rw-r--r-- | ZAPD/ZRoom/Commands/SetLightList.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ZAPD/ZRoom/Commands/SetLightList.cpp b/ZAPD/ZRoom/Commands/SetLightList.cpp index 2e023ff..0d0f0ff 100644 --- a/ZAPD/ZRoom/Commands/SetLightList.cpp +++ b/ZAPD/ZRoom/Commands/SetLightList.cpp @@ -15,6 +15,8 @@ void SetLightList::ParseRawData() numLights = cmdArg1; int32_t currentPtr = segmentOffset; + + lights.reserve(this->numLights); for (int i = 0; i < this->numLights; i++) { LightInfo light(parent->GetRawData(), currentPtr); |
