diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/gob/minigames/geisha/meter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/minigames/geisha/meter.cpp b/engines/gob/minigames/geisha/meter.cpp index 719ecf3d18..7ec3119866 100644 --- a/engines/gob/minigames/geisha/meter.cpp +++ b/engines/gob/minigames/geisha/meter.cpp @@ -67,7 +67,7 @@ int32 Meter::increase(int32 n) { if (n < 0) return decrease(-n); - int32 overflow = MAX(0, (_value + n) - _maxValue); + int32 overflow = MAX<int32>(0, (_value + n) - _maxValue); int32 value = CLIP<int32>(_value + n, 0, _maxValue); if (_value == value) @@ -83,7 +83,7 @@ int32 Meter::decrease(int32 n) { if (n < 0) return increase(-n); - int32 underflow = -MIN(0, _value - n); + int32 underflow = -MIN<int32>(0, _value - n); int32 value = CLIP<int32>(_value - n, 0, _maxValue); if (_value == value) |