[Scummvm-git-logs] scummvm master -> 2ee46abfa89ba8cfab344e8a892f8582b65d538e

sluicebox 22204938+sluicebox at users.noreply.github.com
Mon Oct 21 04:48:01 CEST 2019


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:
2ee46abfa8 SCI32: Fix GK1 icon bar workaround


Commit: 2ee46abfa89ba8cfab344e8a892f8582b65d538e
    https://github.com/scummvm/scummvm/commit/2ee46abfa89ba8cfab344e8a892f8582b65d538e
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2019-10-20T19:47:21-07:00

Commit Message:
SCI32: Fix GK1 icon bar workaround

Fixes an uninitialized parameter workaround, trac #11215

This caused the icon bar to error when in "icon up" mode

Changed paths:
    engines/sci/engine/workarounds.cpp


diff --git a/engines/sci/engine/workarounds.cpp b/engines/sci/engine/workarounds.cpp
index ea1d553..15519fb 100644
--- a/engines/sci/engine/workarounds.cpp
+++ b/engines/sci/engine/workarounds.cpp
@@ -332,7 +332,7 @@ static const uint16 sig_uninitread_sq1_1[] = {
 // Workarounds for uninitialized reads for parameters
 //    gameID,           room,script,lvl,          object-name, method-name,       local-call-signature, index-range,  workaround
 const SciWorkaroundEntry uninitializedReadForParamWorkarounds[] = {
-	{ GID_GK1,            -1,    12, -1,          "GKIconbar", "showInvItem",                     NULL,     1,     1,{ WORKAROUND_FAKE,   0 } }, // When showing the icon bar containing an inventory item
+	{ GID_GK1,            -1,    12, -1,          "GKIconbar", "showInvItem",                     NULL,     1,     1,{ WORKAROUND_FAKE,   1 } }, // When showing the icon bar containing an inventory item
 	{ GID_HOYLE5,         -1,    15, -1,               "Hand", "add",                             NULL,     1,     1,{ WORKAROUND_FAKE,   0 } }, // When the game adds cards to your hand in any mini-game
 	{ GID_HOYLE5,        700,   730,  0,                 NULL, "runningSuit",                     NULL,     2,     2,{ WORKAROUND_FAKE,   0 } }, // when an opponent is playing in Bridge
 	{ GID_HOYLE5,       1100,    22, -1,           "HandPile", "show",                            NULL,     1,     1,{ WORKAROUND_FAKE,   0 } }, // when showing money piles in Poker





More information about the Scummvm-git-logs mailing list