aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/advancedDetector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/advancedDetector.h b/common/advancedDetector.h
index 11d8a32e9b..c4dd12d534 100644
--- a/common/advancedDetector.h
+++ b/common/advancedDetector.h
@@ -70,7 +70,7 @@ typedef Array<const ADGameDescription*> ADGameDescList;
const PlainGameDescriptor *g = list; \
while (g->gameid) { \
if (0 == scumm_stricmp(gameid, g->gameid)) \
- break; \
+ return *g; \
g++; \
} \
\