From f906aa1bf02ba95b61fe8538b976edf3d1284f48 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Wed, 27 Apr 2022 19:34:45 +0200 Subject: [PATCH] refactor: more casts --- include/game/World.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/game/World.h b/include/game/World.h index 0500464..7c097fa 100644 --- a/include/game/World.h +++ b/include/game/World.h @@ -203,7 +203,7 @@ public: const std::unordered_map& GetChunks() const { return m_Chunks; } - const Color& GetSpawnColor(TeamColor color) const { return m_SpawnColorPalette[(std::size_t)color]; } + const Color& GetSpawnColor(TeamColor color) const { return m_SpawnColorPalette[static_cast(color)]; } const SpawnColorPalette& GetSpawnColors() const { return m_SpawnColorPalette; } const MobList& GetMobList() const { return m_Mobs; }