[ox] Fix for MSVC
This commit is contained in:
4
deps/ox/src/ox/std/hashmap.hpp
vendored
4
deps/ox/src/ox/std/hashmap.hpp
vendored
@@ -176,13 +176,13 @@ void HashMap<K, T>::erase(const K &k) {
|
||||
while (true) {
|
||||
const auto &p = m_pairs[h];
|
||||
if (p == nullptr || ox_strcmp(p->key, k) == 0) {
|
||||
m_pairs.erase(h);
|
||||
oxIgnoreError(m_pairs.erase(h));
|
||||
break;
|
||||
} else {
|
||||
h = hash(hashStr, 8) % m_pairs.size();
|
||||
}
|
||||
}
|
||||
m_keys.erase(ox::find(m_keys.begin(), m_keys.end(), k));
|
||||
oxIgnoreError(m_keys.erase(ox::find(m_keys.begin(), m_keys.end(), k)));
|
||||
}
|
||||
|
||||
template<typename K, typename T>
|
||||
|
Reference in New Issue
Block a user