summaryrefslogtreecommitdiff
path: root/StormLib/src/SFileCreateArchive.cpp
diff options
context:
space:
mode:
authorChristopher Leggett <chris@leggett.dev>2025-01-19 20:06:42 -0500
committerGitHub <noreply@github.com>2025-01-19 18:06:42 -0700
commit526aad59d54c1a507449255a27d8f9bb01d60d89 (patch)
treede9d327a07ec1b607179230d3ddb0e869874063f /StormLib/src/SFileCreateArchive.cpp
parented674f1ed293db8c06bdae5ea02fb5c9cc677603 (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