Skip to content
Snippets Groups Projects
Commit 42431d2a authored by David Marcec's avatar David Marcec
Browse files

fixed invalid uuid bool operator

parent b8e70faa
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ struct UUID { ...@@ -24,7 +24,7 @@ struct UUID {
uuid[1] = hi; uuid[1] = hi;
}; };
explicit operator bool() const { explicit operator bool() const {
return uuid[0] != INVALID_UUID[0] && uuid[1] != INVALID_UUID[1]; return uuid[0] != INVALID_UUID[0] || uuid[1] != INVALID_UUID[1];
} }
bool operator==(const UUID& rhs) const { bool operator==(const UUID& rhs) const {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment