aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/agi/detection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp
index a56c547c28..b1b6c92912 100644
--- a/engines/agi/detection.cpp
+++ b/engines/agi/detection.cpp
@@ -2225,7 +2225,7 @@ Common::EncapsulatedADGameDesc fallbackDetector(const FSList *fslist) {
// Check if we found a match with any of the fallback methods
Common::EncapsulatedADGameDesc result;
if (matchedUsingWag || matchedUsingFilenames) {
- extra = description + " " + extra; // Let's combine the description and extra
+ extra = description + (!extra.empty() ? " " : "") + extra; // Let's combine the description and extra
result = Common::EncapsulatedADGameDesc((const Common::ADGameDescription *)&g_fallbackDesc, gameid, extra);
printf("Your game version has been detected using fallback matching as a\n");