Skip to content

Commit 95d4dcb

Browse files
committed
Fixed saving to do a case-insensitive compare on path names
1 parent ca5aa94 commit 95d4dcb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

xml/xml_save_world.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,8 +795,7 @@ void CMUSHclientDoc::Save_Plugins_XML (CArchive& ar)
795795

796796
// strip absolute path if possible
797797
if (!strPluginsPath.IsEmpty ())
798-
if (strSource.Left (strPluginsPath.GetLength ()) ==
799-
strPluginsPath)
798+
if ((strSource.Left (strPluginsPath.GetLength ()).CompareNoCase (strPluginsPath)) == 0)
800799
strSource = strSource.Mid (strPluginsPath.GetLength ());
801800

802801
ar.WriteString ("<include ");

0 commit comments

Comments
 (0)