Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the trick options loop (HarbourMasters#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.
- Loading branch information