[Scummvm-git-logs] scummvm master -> 73e6546559f2db81fbe9f951b1e716232c8f5822

dreammaster dreammaster at scummvm.org
Mon Apr 10 04:09:05 CEST 2017


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
73e6546559 TITANIC: Fix incorrect indexing in CStarCloseup setup2


Commit: 73e6546559f2db81fbe9f951b1e716232c8f5822
    https://github.com/scummvm/scummvm/commit/73e6546559f2db81fbe9f951b1e716232c8f5822
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-04-09T22:08:54-04:00

Commit Message:
TITANIC: Fix incorrect indexing in CStarCloseup setup2

Changed paths:
    engines/titanic/star_control/star_closeup.cpp


diff --git a/engines/titanic/star_control/star_closeup.cpp b/engines/titanic/star_control/star_closeup.cpp
index f8adb32..6ed0b90 100644
--- a/engines/titanic/star_control/star_closeup.cpp
+++ b/engines/titanic/star_control/star_closeup.cpp
@@ -166,7 +166,7 @@ bool CStarCloseup::setup2(int val1, int val2) {
 		} else {
 			for (int ctr = 0; ctr < 5; ++ctr) {
 				e->_field0 = static_cast<int>(g_vm->getRandomFloat() * 1350.0
-					- 675.0) + VALUES1[idx];
+					- 675.0) + VALUES1[ctr];
 				int val = VALUES2[g_vm->getRandomNumber(15)];
 				e->_pixel1 = val & 0xff;
 				e->_pixel2 = (val >> 8) & 0xff;





More information about the Scummvm-git-logs mailing list