From 7789c5327001c2780bec9554d1dce273baa43965 Mon Sep 17 00:00:00 2001 From: xezon <4720891+xezon@users.noreply.github.com> Date: Sun, 11 Aug 2024 10:19:07 +0200 Subject: [PATCH] Fix debug compile error --- src/game/client/w3dassetmanager.cpp | 3 ++- src/w3d/renderer/assetmgr.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/game/client/w3dassetmanager.cpp b/src/game/client/w3dassetmanager.cpp index b5ad009f8..7f8ba7cd5 100644 --- a/src/game/client/w3dassetmanager.cpp +++ b/src/game/client/w3dassetmanager.cpp @@ -401,7 +401,8 @@ TextureClass *GameAssetManager::Recolor_Texture_One_Time(TextureClass *texture, char buffer[512]; Create_Color_Texture_Name(buffer, name, color); new_texture->Set_Texture_Name(buffer); - captainslog_dbgassert(!m_textureHash.Exists(new_texture), "Texture hash collision occurred"); // Thyme specific + captainslog_dbgassert( + !m_textureHash.Exists(new_texture->Get_Name()), "Texture hash collision occurred"); // Thyme specific m_textureHash.Insert(new_texture->Get_Name(), new_texture); new_texture->Add_Ref(); Ref_Ptr_Release(surface); diff --git a/src/w3d/renderer/assetmgr.cpp b/src/w3d/renderer/assetmgr.cpp index 8feaacd9b..82798e567 100644 --- a/src/w3d/renderer/assetmgr.cpp +++ b/src/w3d/renderer/assetmgr.cpp @@ -385,7 +385,8 @@ TextureClass *W3DAssetManager::Get_Texture(const char *filename, return nullptr; } - captainslog_dbgassert(!m_textureHash.Exists(new_texture), "Texture hash collision occurred"); // Thyme specific + captainslog_dbgassert( + !m_textureHash.Exists(new_texture->Get_Name()), "Texture hash collision occurred"); // Thyme specific m_textureHash.Insert(new_texture->Get_Name(), new_texture); }