diff options
author | Matthew Hoops | 2013-04-22 17:21:22 -0400 |
---|---|---|
committer | Matthew Hoops | 2013-04-22 17:22:29 -0400 |
commit | 0209ce4e3a1767fd9e7a87873ed1f39df5323608 (patch) | |
tree | 97d7ef0a1d5bb80dde7de7d26a101310d87b089c /engines/scumm | |
parent | 617b9cf613cb3ac67a033e38fd6fd1bcdf3b19ad (diff) | |
download | scummvm-rg350-0209ce4e3a1767fd9e7a87873ed1f39df5323608.tar.gz scummvm-rg350-0209ce4e3a1767fd9e7a87873ed1f39df5323608.tar.bz2 scummvm-rg350-0209ce4e3a1767fd9e7a87873ed1f39df5323608.zip |
SCUMM: Fix a bug in football's nextPoint U32 opcode
Seems to fix bug #3495704
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/he/logic/football.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/he/logic/football.cpp b/engines/scumm/he/logic/football.cpp index b405d634a4..bed3f6b569 100644 --- a/engines/scumm/he/logic/football.cpp +++ b/engines/scumm/he/logic/football.cpp @@ -218,10 +218,10 @@ int LogicHEfootball::nextPoint(int32 *args) { if (res >= (double)args[6]) { var8 = (double)args[6] * var8 / res; var10 = (double)args[6] * var10 / res; - res = (double)args[6] * var6 / res; + var6 = (double)args[6] * var6 / res; } - writeScummVar(108, (int32)res); + writeScummVar(108, (int32)var6); writeScummVar(109, (int32)var10); writeScummVar(110, (int32)var8); |