Skip to content

Commit b7b9b24

Browse files
committed
Update player_hud.cpp
1 parent 5d63477 commit b7b9b24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ogsr_engine/xrGame/player_hud.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ void attachable_hud_item::setup_firedeps(firedeps& fd)
225225

226226
fd.vLastFD.set(0.f, 0.f, 1.f);
227227
m_item_transform.transform_dir(fd.vLastFD);
228-
if (auto Wpn = smart_cast<CWeapon*>(m_parent_hud_item))
228+
if (auto Wpn = smart_cast<CWeapon*>(m_parent_hud_item); Wpn && m_measures.useCopFirePoint)
229229
Wpn->CorrectDirFromWorldToHud(fd.vLastFD);
230230
VERIFY(_valid(fd.vLastFD));
231231
VERIFY(_valid(fd.vLastFD));

0 commit comments

Comments
 (0)