fix an overflow

svn-id: r10095
This commit is contained in:
Max Horn 2003-09-08 16:48:34 +00:00
parent 302974b003
commit 5ecee0f046

View file

@ -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 {