We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d63477 commit b7b9b24Copy full SHA for b7b9b24
ogsr_engine/xrGame/player_hud.cpp
@@ -225,7 +225,7 @@ void attachable_hud_item::setup_firedeps(firedeps& fd)
225
226
fd.vLastFD.set(0.f, 0.f, 1.f);
227
m_item_transform.transform_dir(fd.vLastFD);
228
- if (auto Wpn = smart_cast<CWeapon*>(m_parent_hud_item))
+ if (auto Wpn = smart_cast<CWeapon*>(m_parent_hud_item); Wpn && m_measures.useCopFirePoint)
229
Wpn->CorrectDirFromWorldToHud(fd.vLastFD);
230
VERIFY(_valid(fd.vLastFD));
231
0 commit comments