aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/avalanche/parser.cpp b/engines/avalanche/parser.cpp
index 67f4243c18..1bfbe93f3a 100644
--- a/engines/avalanche/parser.cpp
+++ b/engines/avalanche/parser.cpp
@@ -549,7 +549,7 @@ Common::String Parser::totalTime() {
const double ticksInOneSec = (double)(65535) / 3600;
uint16 h, m, s;
- h = floor(_vm->_avalot->_totalTime / ticksInOneSec); // No. of seconds.
+ h = (uint16)floor(_vm->_avalot->_totalTime / ticksInOneSec); // No. of seconds.
m = h % 3600;
h /= 3600;
s = m % 60;