From 88f5d02b6abb90c1a2e14667331124aa419c70b8 Mon Sep 17 00:00:00 2001 From: cat Date: Tue, 6 Jan 2026 04:10:58 +0200 Subject: [PATCH] Minor tweaks on the general codebase --- headers/ECS.hpp | 1 - headers/Types.hpp | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/headers/ECS.hpp b/headers/ECS.hpp index b639d7e..750dd31 100644 --- a/headers/ECS.hpp +++ b/headers/ECS.hpp @@ -49,7 +49,6 @@ public: // Components template T &AddComponent(const Entity &entity, Args &&...constructionArguments) { - // Insert to entity list auto entityIter = GetEntityIterator( entity, std::format( diff --git a/headers/Types.hpp b/headers/Types.hpp index 134eb79..0dccc0b 100644 --- a/headers/Types.hpp +++ b/headers/Types.hpp @@ -41,10 +41,8 @@ namespace std { template <> struct hash { size_t operator()(const Tourmaline::Type::UUID &uuid) const noexcept { const auto data = uuid.data.get(); - size_t h1 = std::hash{}(data[0]); - size_t h2 = std::hash{}(data[1]); - - // Combine the two hashes + size_t h1 = std::hash{}(data[0]), + h2 = std::hash{}(data[1]); return h1 ^ (h2 << 1); } };