diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2021-01-09 15:07:20 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2021-01-09 15:07:20 -0500 |
| commit | 6781451ab2e0bda097a699d216c092e6d3842aa1 (patch) | |
| tree | aaec7165d5ceee9b581944602c7d2c1400c04961 /src/modinfo.cpp | |
| parent | ea76c337105cf76e25dfbd95a68c0658b4cd5b7e (diff) | |
handle cycles by putting parent ids in a set
Diffstat (limited to 'src/modinfo.cpp')
| -rw-r--r-- | src/modinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modinfo.cpp b/src/modinfo.cpp index a0382fe8..16fcf93a 100644 --- a/src/modinfo.cpp +++ b/src/modinfo.cpp @@ -516,7 +516,7 @@ bool ModInfo::categorySet(int categoryID) const { for (std::set<int>::const_iterator iter = m_Categories.begin(); iter != m_Categories.end(); ++iter) { if ((*iter == categoryID) || - (CategoryFactory::instance().isDecendantOf(*iter, categoryID))) { + (CategoryFactory::instance().isDescendantOf(*iter, categoryID))) { return true; } } |
