Fix SDL-only build of gauges.cpp

Even when empty and default-constructible, const members must be
explicitly constructed.  Add a default constructor to do this.

Fixes: 893e8cde06 ("Combine hud gauge parameters")
This commit is contained in:
Kp 2018-06-30 21:53:55 +00:00
parent da268c6d21
commit 1da76dde7d

View file

@ -554,6 +554,11 @@ struct hud_draw_context_xyscale
xscale(x), yscale(y)
{
}
#else
constexpr hud_draw_context_xyscale() :
xscale{}, yscale{}
{
}
#endif
};