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:
parent
3f9d110502
commit
27b6012e20
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue