aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/overlay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cruise/overlay.cpp')
-rw-r--r--engines/cruise/overlay.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/cruise/overlay.cpp b/engines/cruise/overlay.cpp
index 1bca03da1d..68f6545d77 100644
--- a/engines/cruise/overlay.cpp
+++ b/engines/cruise/overlay.cpp
@@ -81,7 +81,8 @@ int loadOverlay(const char *scriptName) {
if (!overlayTable[scriptIdx].ovlData)
return (-2);
- strcpy(overlayTable[scriptIdx].overlayName, scriptName);
+ if (scriptName != overlayTable[scriptIdx].overlayName)
+ strcpy(overlayTable[scriptIdx].overlayName, scriptName);
overlayTable[scriptIdx].alreadyLoaded = 1;