aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/advancedDetector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/advancedDetector.cpp b/common/advancedDetector.cpp
index e7120a620b..210d6169ad 100644
--- a/common/advancedDetector.cpp
+++ b/common/advancedDetector.cpp
@@ -376,8 +376,8 @@ static ADGameDescList detectGame(const FSList *fslist, const Common::ADParams &p
// Do not even bother to look at entries which do not have matching
// language and platform (if specified).
- if ((language != UNK_LANG && g->language != language) ||
- (platform != kPlatformUnknown && g->platform != platform)) {
+ if ((language != UNK_LANG && g->language != UNK_LANG && g->language != language) ||
+ (platform != kPlatformUnknown && g->platform != kPlatformUnknown && g->platform != platform)) {
continue;
}