Skip to content

Commit 72fa4b7

Browse files
committed
small fix
1 parent 3bf638e commit 72fa4b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Client/mods/deathmatch/logic/CClientModel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void CClientModel::RestoreDFF(CModelInfo* pModelInfo)
213213

214214
bool CClientModel::AllocateTXD(std::string &strTxdName)
215215
{
216-
uint uiSlotID = g_pGame->GetPools()->GetTxdPool().AllocateTextureDictonarySlot(m_iModelID - MAX_MODEL_DFF_ID, strTxdName);
216+
std::uint32_t uiSlotID = g_pGame->GetPools()->GetTxdPool().AllocateTextureDictonarySlot(m_iModelID - MAX_MODEL_DFF_ID, strTxdName);
217217
if (uiSlotID != -1)
218218
{
219219
m_bAllocatedByUs = true;

Client/mods/deathmatch/logic/CClientModelManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ int CClientModelManager::GetFirstFreeModelID(void)
7676

7777
int CClientModelManager::GetFreeTxdModelID()
7878
{
79-
ushort usTxdId = g_pGame->GetPools()->GetTxdPool().GetFreeTextureDictonarySlot();
79+
std::uint16_t usTxdId = g_pGame->GetPools()->GetTxdPool().GetFreeTextureDictonarySlot();
8080
if (usTxdId == -1)
8181
return INVALID_MODEL_ID;
8282
return MAX_MODEL_DFF_ID + usTxdId;

0 commit comments

Comments
 (0)