mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-17 07:49:21 +00:00
Store ini sections in a std::list (rather than vector) to prevent unexpected pointer invalidation with use of GetOrCreateSection.
This commit is contained in:
parent
4138702336
commit
516369594f
2 changed files with 4 additions and 3 deletions
|
@ -5,6 +5,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <cstring>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
@ -116,7 +117,7 @@ public:
|
|||
Section* GetOrCreateSection(const std::string& section);
|
||||
|
||||
private:
|
||||
std::vector<Section> sections;
|
||||
std::list<Section> sections;
|
||||
|
||||
const Section* GetSection(const std::string& section) const;
|
||||
Section* GetSection(const std::string& section);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue