Explorar o código

refactor by request

AzaezelX hai 1 ano
pai
achega
4fb67ed618
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  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);
    }
 };