Sfoglia il codice sorgente

refactor by request

AzaezelX 1 anno fa
parent
commit
4fb67ed618
1 ha cambiato i file con 1 aggiunte e 5 eliminazioni
  1. 1 5
      Engine/source/scene/sceneQueryUtil.h

+ 1 - 5
Engine/source/scene/sceneQueryUtil.h

@@ -86,11 +86,7 @@ struct SceneBinRange
 
    inline bool operator!=(const SceneBinRange& other) const
    {
-      if (memcmp(minCoord, other.minCoord, sizeof(minCoord)) == 0 &&
-         memcmp(maxCoord, other.maxCoord, sizeof(maxCoord)) == 0)
-         return false;
-      else
-         return true;
+      return !(*this == other);
    }
 };