[Scummvm-git-logs] scummvm master -> b40cd7e100265cb3c777092ba5aec6002105a548

bluegr bluegr at gmail.com
Thu Feb 18 22:22:54 UTC 2021


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:
b40cd7e100 WINTERMUTE: break the loop if the achievement was found


Commit: b40cd7e100265cb3c777092ba5aec6002105a548
    https://github.com/scummvm/scummvm/commit/b40cd7e100265cb3c777092ba5aec6002105a548
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2021-02-19T00:22:51+02:00

Commit Message:
WINTERMUTE: break the loop if the achievement was found

Changed paths:
    engines/wintermute/ext/wme_galaxy.cpp
    engines/wintermute/ext/wme_steam.cpp


diff --git a/engines/wintermute/ext/wme_galaxy.cpp b/engines/wintermute/ext/wme_galaxy.cpp
index 3d42cc4d43..3552547b08 100644
--- a/engines/wintermute/ext/wme_galaxy.cpp
+++ b/engines/wintermute/ext/wme_galaxy.cpp
@@ -100,6 +100,7 @@ bool SXWMEGalaxyAPI::scCallMethod(ScScript *script, ScStack *stack, ScStack *thi
 		for (uint32 i = 0; i < _achievementsInfo.descriptions.size(); i++) {
 			if (strcmp(_achievementsInfo.descriptions[i].id, id) == 0) {
 				msg = _achievementsInfo.descriptions[i].title;
+				break;
 			}
 		}
 
diff --git a/engines/wintermute/ext/wme_steam.cpp b/engines/wintermute/ext/wme_steam.cpp
index c776d9ec35..da718a30a8 100644
--- a/engines/wintermute/ext/wme_steam.cpp
+++ b/engines/wintermute/ext/wme_steam.cpp
@@ -97,6 +97,7 @@ bool SXSteamAPI::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisSta
 		for (uint32 i = 0; i < _achievementsInfo.descriptions.size(); i++) {
 			if (strcmp(_achievementsInfo.descriptions[i].id, id) == 0) {
 				msg = _achievementsInfo.descriptions[i].title;
+				break;
 			}
 		}
 




More information about the Scummvm-git-logs mailing list