From 5ecee0f0467808160cd0f4e2f0bb85a80e8ea2a5 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 8 Sep 2003 16:48:34 +0000 Subject: fix an overflow svn-id: r10095 --- scumm/resource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3