Skip to content

Commit

Permalink
Use reference
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij committed Aug 25, 2024
1 parent eb0ca3d commit 6450c87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Client/mods/deathmatch/logic/CResourceModelStreamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ void CResourceModelStreamer::FullyReleaseModel(std::uint16_t modelId)
if (refs == m_requestedModels.end())
return;

std::uint16_t refsCount = refs->second;
std::uint16_t& refsCount = refs->second;

if (refsCount > 0)
{
m_requestedModels[modelId] = 0;
refsCount = 0;

CModelInfo* model = g_pGame->GetModelInfo(modelId);

Expand Down

0 comments on commit 6450c87

Please sign in to comment.