aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/mohawk/livingbooks.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index 99f69c2ae6..20bedf8be7 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -763,6 +763,8 @@ Common::String MohawkEngine_LivingBooks::convertWinFileName(const Common::String
Common::String filename;
for (uint32 i = 0; i < string.size(); i++) {
+ if (i == 0 && (string[i] == '/' || string[i] == '\\')) // ignore slashes at start
+ continue;
if (string[i] == '\\')
filename += '/';
else