diff options
| author | Christopher Leggett <chris@leggett.dev> | 2025-01-19 20:06:42 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-19 18:06:42 -0700 |
| commit | 526aad59d54c1a507449255a27d8f9bb01d60d89 (patch) | |
| tree | de9d327a07ec1b607179230d3ddb0e869874063f /StormLib/src/SFileCreateArchive.cpp | |
| parent | ed674f1ed293db8c06bdae5ea02fb5c9cc677603 (diff) | |
Fix the trick options loop (#4917)
It initialized an array with a size, which pre-filled
it all with nullptrs, and then used push_back on top of that.
So it was a bunch of nullptrs followed by the actual
option pointers. Fixed by calling reserve instead of
constructing with a size, so it reserves the memory it needs
without actually filling the vector with nullptrs, so push_back
properly starts from the beginning.
Diffstat (limited to 'StormLib/src/SFileCreateArchive.cpp')
0 files changed, 0 insertions, 0 deletions
