diff options
| author | Silarn <jrim@rimpo.org> | 2019-12-31 02:42:00 -0600 |
|---|---|---|
| committer | Jeremy Rimpo <jeremy.rimpo@servermonkey.com> | 2023-09-21 17:11:59 -0500 |
| commit | 2f7478f8fc3ab047eaab44cd666bcc06bf15a127 (patch) | |
| tree | 3788291a5fd73032263fdf0eb5649e8590bd060e /src/categories.h | |
| parent | f764271b1f1fa457af9dd4f7d044005d46fcd84b (diff) | |
WIP: Fix data storage and fix loading
Diffstat (limited to 'src/categories.h')
| -rw-r--r-- | src/categories.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/categories.h b/src/categories.h index e9f00726..63d72672 100644 --- a/src/categories.h +++ b/src/categories.h @@ -58,6 +58,7 @@ public: : m_Name(name), m_ID(nexusID) {} QString m_Name; int m_ID; + int m_CategoryID = -1; friend bool operator==(const NexusCategory& LHS, const NexusCategory& RHS) { return LHS.m_ID == RHS.m_ID; @@ -232,7 +233,7 @@ private: private: std::vector<Category> m_Categories; std::map<int, unsigned int> m_IDMap; - std::map<NexusCategory, unsigned int> m_NexusMap; + std::map<int, NexusCategory> m_NexusMap; private: // called by isDescendantOf() |
