Просмотр исходного кода

fixed invalid uuid bool operator

David Marcec 8 лет назад
Родитель
Сommit
42431d2aa6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/core/hle/service/acc/profile_manager.h

+ 1 - 1
src/core/hle/service/acc/profile_manager.h

@@ -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 {