optimizations (#1829)

This commit is contained in:
David Markowitz
2025-06-24 20:13:48 -07:00
committed by GitHub
parent f63a9a6bea
commit 0f0d0a6dee
7 changed files with 278 additions and 315 deletions

View File

@@ -24,9 +24,8 @@ namespace {
}
void Loot::CacheMatrix(uint32_t matrixIndex) {
if (CachedMatrices.find(matrixIndex) != CachedMatrices.end()) {
return;
}
if (CachedMatrices.contains(matrixIndex)) return;
CachedMatrices.insert(matrixIndex);
CDComponentsRegistryTable* componentsRegistryTable = CDClientManager::GetTable<CDComponentsRegistryTable>();
CDItemComponentTable* itemComponentTable = CDClientManager::GetTable<CDItemComponentTable>();