aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2013-04-21 00:23:38 +0200
committerEinar Johan Trøan Sømåen2013-04-21 00:24:02 +0200
commitb97edfcbe0f53f0d6416c25128647441f0ff50b6 (patch)
treef94e433b0119b0eda8ebdc792320e6a4f2e64638 /engines
parentbe0f082ab60b638ec0780e6d748dfe7753299a51 (diff)
downloadscummvm-rg350-b97edfcbe0f53f0d6416c25128647441f0ff50b6.tar.gz
scummvm-rg350-b97edfcbe0f53f0d6416c25128647441f0ff50b6.tar.bz2
scummvm-rg350-b97edfcbe0f53f0d6416c25128647441f0ff50b6.zip
WINTERMUTE: Fix the final int->int32 to allow AmigaOS4-compile.
Diffstat (limited to 'engines')
-rw-r--r--engines/wintermute/ad/ad_object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/ad/ad_object.cpp b/engines/wintermute/ad/ad_object.cpp
index b01caf6b2c..741d6e6fc6 100644
--- a/engines/wintermute/ad/ad_object.cpp
+++ b/engines/wintermute/ad/ad_object.cpp
@@ -941,7 +941,7 @@ void AdObject::talk(const char *text, const char *sound, uint32 duration, const
// set duration by text length
if (_sentence->_duration <= 0) {// TODO: Avoid longs.
- _sentence->_duration = MAX((size_t)1000, _gameRef->_subtitlesSpeed * strlen(_sentence->_text));
+ _sentence->_duration = MAX<int32>((size_t)1000, _gameRef->_subtitlesSpeed * strlen(_sentence->_text));
}