Skip to content

Commit 64557f0

Browse files
committed
Fix crashing in adjust hud mode
Fixed crashing on trying to adjust an inactive item
1 parent 0211ad5 commit 64557f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/xrGame/player_hud_tune.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ void player_hud::tune(Ivector _values)
214214

215215
bool is_16x9 = UI().is_widescreen();
216216

217+
auto is_attached = m_attached_items[hud_adj_item_idx];
218+
219+
if (!is_attached)
220+
return;
221+
217222
if(hud_adj_mode==1 || hud_adj_mode==2)
218223
{
219224
Fvector diff;

0 commit comments

Comments
 (0)