Parenthesize gauge_key comma expression
C++20 deprecates `array_name[A,B]`. For this use case, `A` is needed for its side effects, but is not intended as an index operation. Add parentheses to satisfy the deprecation warning, without changing the meaning of the code.
This commit is contained in:
parent
78fd6550ea
commit
d586fe91e4
|
@ -1162,7 +1162,7 @@ static void hud_show_keys(const hud_draw_context_mr hudctx, const hud_ar_scale_f
|
|||
grs_bitmap *const bm;
|
||||
public:
|
||||
gauge_key(const unsigned key_icon, const local_multires_gauge_graphic multires_gauge_graphic) :
|
||||
bm(&GameBitmaps[static_cast<void>(multires_gauge_graphic), PAGE_IN_GAUGE(key_icon, multires_gauge_graphic), GET_GAUGE_INDEX(key_icon)])
|
||||
bm(&GameBitmaps[(static_cast<void>(multires_gauge_graphic), PAGE_IN_GAUGE(key_icon, multires_gauge_graphic), GET_GAUGE_INDEX(key_icon))])
|
||||
{
|
||||
}
|
||||
grs_bitmap *operator->() const
|
||||
|
|
Loading…
Reference in a new issue