diff options
| author | Tannin <devnull@localhost> | 2014-09-24 19:51:51 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-09-24 19:51:51 +0200 |
| commit | a62ecc5bf1e92e6dd2ba8e6e61a797641c254d92 (patch) | |
| tree | 5e3538861b2768a1c16b3daf7f073e05b5764059 /src/modinfo.cpp | |
| parent | 5f1022917b655650f842dc8f34967716081685ef (diff) | |
- several style fixes suggested by static analysis
- will now support up to 4 levels of version numbers (major.minor.subminor.subsubminor
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 93949b34..de103cb0 100644 --- a/src/modinfo.cpp +++ b/src/modinfo.cpp @@ -142,7 +142,7 @@ bool ModInfo::removeMod(unsigned int index) auto iter = s_ModsByModID.find(modInfo->getNexusID()); if (iter != s_ModsByModID.end()) { std::vector<unsigned int> indices = iter->second; - std::remove(indices.begin(), indices.end(), index); + indices.erase(std::remove(indices.begin(), indices.end(), index), indices.end()); s_ModsByModID[modInfo->getNexusID()] = indices; } |
