Fix hang in statusbar mode when energy>100

Reported-by: Mako88 <https://github.com/dxx-rebirth/dxx-rebirth/issues/78>
This commit is contained in:
Kp 2015-05-30 16:06:05 +00:00
parent 3f9d110502
commit 27b6012e20

View file

@ -81,7 +81,8 @@ public:
{
return hiresmode;
}
unsigned get(unsigned h, unsigned l) const
template <typename T>
T get(T h, T l) const
{
return is_hires() ? h : l;
}