Describe the bug
The Current Gear HUD briefly shows 10 instead of the selected gear while shifting.
CurrentGearOverlay.Render clamps the gear with Clip(0, 11) before indexing _gearBitmaps. Index 11 draws a 10, so any value above the range is drawn as 10 rather than ignored.
To Reproduce
- Activate the Current Gear HUD, Forza Horizon 6.
- Drive and shift up and down repeatedly.
- Now and then a 10 flashes up for a frame or two.
Expected behavior
The selected gear, or the previous one held over, never a gear the car does not have.
Desktop
- OS: Windows 11
- Version: Race Element 2.7.1.6
Describe the bug
The Current Gear HUD briefly shows 10 instead of the selected gear while shifting.
CurrentGearOverlay.Renderclamps the gear withClip(0, 11)before indexing_gearBitmaps. Index 11 draws a 10, so any value above the range is drawn as 10 rather than ignored.To Reproduce
Expected behavior
The selected gear, or the previous one held over, never a gear the car does not have.
Desktop