[ox/std] Fix possible false positive in HashMap::operator==
All checks were successful
Build / build (push) Successful in 1m13s

This commit is contained in:
2026-01-30 21:03:58 -06:00
parent d19b848427
commit 96c5223e44

View File

@@ -109,7 +109,9 @@ constexpr bool HashMap<K, T>::operator==(HashMap const &other) const {
for (auto &k : m_keys) {
auto const a = at(k).value;
auto const b = other.at(k).value;
if (a && b && *a != *b) {
if (
a != b && // handle one being null and other not
(a && b && *a != *b)) {
return false;
}
}