summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-08 20:53:42 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-08 20:53:42 +0100
commitaf09cb06f5c148f16c1bd1b5f20e766a15abe8c4 (patch)
tree0260b5d6504e05b1e6f009015638c7ef0115ca5f /src/render
parentCKeyGen (diff)
parentUse original names (diff)
downloadre3-af09cb06f5c148f16c1bd1b5f20e766a15abe8c4.tar
re3-af09cb06f5c148f16c1bd1b5f20e766a15abe8c4.tar.gz
re3-af09cb06f5c148f16c1bd1b5f20e766a15abe8c4.tar.bz2
re3-af09cb06f5c148f16c1bd1b5f20e766a15abe8c4.tar.lz
re3-af09cb06f5c148f16c1bd1b5f20e766a15abe8c4.tar.xz
re3-af09cb06f5c148f16c1bd1b5f20e766a15abe8c4.tar.zst
re3-af09cb06f5c148f16c1bd1b5f20e766a15abe8c4.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Hud.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp
index 3432f32c..1c870fd2 100644
--- a/src/render/Hud.cpp
+++ b/src/render/Hud.cpp
@@ -481,7 +481,7 @@ void CHud::Draw()
CBaseModelInfo *weaponModel = CModelInfo::GetModelInfo(weaponInfo->m_nModelId);
RwTexDictionary *weaponTxd = CTxdStore::GetSlot(weaponModel->GetTxdSlot())->texDict;
if (weaponTxd) {
- RwTexture *weaponIcon = RwTexDictionaryFindNamedTexture(weaponTxd, weaponModel->GetName());
+ RwTexture *weaponIcon = RwTexDictionaryFindNamedTexture(weaponTxd, weaponModel->GetModelName());
if (weaponIcon) {
RwRenderStateSet(rwRENDERSTATETEXTUREFILTER, (void*)rwFILTERLINEAR);
#ifndef FIX_BUGS