Skip to content

Commit 72bf5db

Browse files
committed
properly set held device as unsupported if checks fail
1 parent ee1e355 commit 72bf5db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/Entities/AHuman.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,6 +2329,8 @@ void AHuman::PreControllerUpdate() {
23292329
heldDevice->SetSupported(m_MovementState == PRONE || m_ProneState == LAYINGPRONE);
23302330
m_pBGArm->SetRecoil(Vector(), Vector(), false);
23312331
}
2332+
} else {
2333+
heldDevice->SetSupported(false);
23322334
}
23332335
}
23342336
}

0 commit comments

Comments
 (0)