From ece0e2957798cf234b4b4886c6b0852e6f89bf04 Mon Sep 17 00:00:00 2001 From: Jettford Date: Thu, 5 Dec 2024 20:03:17 +0000 Subject: [PATCH] I made this mistake years ago, my bad --- dCommon/dClient/AssetManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dCommon/dClient/AssetManager.cpp b/dCommon/dClient/AssetManager.cpp index 69945378..ba545e7f 100644 --- a/dCommon/dClient/AssetManager.cpp +++ b/dCommon/dClient/AssetManager.cpp @@ -80,7 +80,7 @@ bool AssetManager::HasFile(const char* name) { if (fixedName.rfind("client\\res\\", 0) != 0) fixedName = "client\\res\\" + fixedName; uint32_t crc = crc32b(0xFFFFFFFF, reinterpret_cast(const_cast(fixedName.c_str())), fixedName.size()); - crc = crc32b(crc, reinterpret_cast(const_cast("\0\0\0\0")), 4); + crc = crc32b(crc, reinterpret_cast(const_cast("\0\0\0\0")), 4); for (const auto& item : this->m_PackIndex->GetPackFileIndices()) { if (item.m_Crc == crc) { @@ -128,7 +128,7 @@ bool AssetManager::GetFile(const char* name, char** data, uint32_t* len) { } int32_t packIndex = -1; uint32_t crc = crc32b(0xFFFFFFFF, reinterpret_cast(const_cast(fixedName.c_str())), fixedName.size()); - crc = crc32b(crc, reinterpret_cast(const_cast("\0\0\0\0")), 4); + crc = crc32b(crc, reinterpret_cast(const_cast("\0\0\0\0")), 4); for (const auto& item : this->m_PackIndex->GetPackFileIndices()) { if (item.m_Crc == crc) {