aboutsummaryrefslogtreecommitdiff
path: root/scumm/resource.cpp
diff options
context:
space:
mode:
authorMax Horn2003-09-08 16:48:34 +0000
committerMax Horn2003-09-08 16:48:34 +0000
commit5ecee0f0467808160cd0f4e2f0bb85a80e8ea2a5 (patch)
tree5a5e1d6e685c06548348ef1a58fa925550e047e5 /scumm/resource.cpp
parent302974b00319316c98a4e04881b48932388cc181 (diff)
downloadscummvm-rg350-5ecee0f0467808160cd0f4e2f0bb85a80e8ea2a5.tar.gz
scummvm-rg350-5ecee0f0467808160cd0f4e2f0bb85a80e8ea2a5.tar.bz2
scummvm-rg350-5ecee0f0467808160cd0f4e2f0bb85a80e8ea2a5.zip
fix an overflow
svn-id: r10095
Diffstat (limited to 'scumm/resource.cpp')
-rw-r--r--scumm/resource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp
index cefda53379..111e8a8c45 100644
--- a/scumm/resource.cpp
+++ b/scumm/resource.cpp
@@ -1087,7 +1087,7 @@ int Scumm::convertADResource(int type, int idx, byte * src_ptr, int size) {
// of the ticks value.
if (_gameId == GID_INDY3) {
// Note: since we fix ppqn at 480, ppqn/473 is almost 1
- dw = 500000 * 256 * ppqn / 473 / ticks;
+ dw = 500000 * 256 / 473 * ppqn / ticks;
} else if (_gameId == GID_LOOM) {
dw = 500000 * ppqn / 4 / ticks;
} else {