From 0209ce4e3a1767fd9e7a87873ed1f39df5323608 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Mon, 22 Apr 2013 17:21:22 -0400 Subject: SCUMM: Fix a bug in football's nextPoint U32 opcode Seems to fix bug #3495704 --- engines/scumm/he/logic/football.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/scumm') 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); -- cgit v1.2.3