[Scummvm-git-logs] scummvm master -> 9c99969ac7f4a3cdadd19c539648d724131e2cac
dreammaster
noreply at scummvm.org
Sat Sep 6 21:49:01 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
9c99969ac7 BAGEL: METAGAME: Fix pointer to int cast in HodjPodj
Commit: 9c99969ac7f4a3cdadd19c539648d724131e2cac
https://github.com/scummvm/scummvm/commit/9c99969ac7f4a3cdadd19c539648d724131e2cac
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2025-09-06T14:45:19-07:00
Commit Message:
BAGEL: METAGAME: Fix pointer to int cast in HodjPodj
Changed paths:
engines/bagel/hodjnpodj/metagame/frame/hodjpodj.cpp
diff --git a/engines/bagel/hodjnpodj/metagame/frame/hodjpodj.cpp b/engines/bagel/hodjnpodj/metagame/frame/hodjpodj.cpp
index fe610995028..94759f7c257 100644
--- a/engines/bagel/hodjnpodj/metagame/frame/hodjpodj.cpp
+++ b/engines/bagel/hodjnpodj/metagame/frame/hodjpodj.cpp
@@ -1090,7 +1090,7 @@ PHASE2:
cMsgBox.DoModal();
}
- nChallengeGame = (int)nGameID;
+ nChallengeGame = (LPARAM)nGameID;
nChallengePhase++;
if ((lpMetaGame->m_stGameStruct.bPlayingHodj == FALSE) && (lpMetaGame->m_cPodj.m_bComputer)) {
@@ -1134,7 +1134,7 @@ PHASE3:
lpMetaGame->m_cHodj.m_iFurlongs = 0;
lpMetaGame->m_cPodj.m_iFurlongs = 0;
- nGameID = (long)lpMetaGame;
+ nGameID = (LPARAM)lpMetaGame;
nChallengePhase = 10;
}
nChallengePhase++;
@@ -1199,7 +1199,7 @@ PHASE4:
lpMetaGame->m_cPodj.m_iFurlongs = 0;
nChallengePhase++;
- nGameID = (long)lpMetaGame;
+ nGameID = (LPARAM)lpMetaGame;
break;
default:
@@ -1207,7 +1207,8 @@ PHASE4:
nChallengePhase = 0;
break;
}
- return (nGameID);
+
+ return nGameID;
}
void CHodjPodjWindow::SetComputerScore() {
More information about the Scummvm-git-logs
mailing list