Skip to content

Commit

Permalink
Fixed saving to do a case-insensitive compare on path names
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Feb 9, 2018
1 parent ca5aa94 commit 95d4dcb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xml/xml_save_world.cpp
Expand Up @@ -795,8 +795,7 @@ void CMUSHclientDoc::Save_Plugins_XML (CArchive& ar)

// strip absolute path if possible
if (!strPluginsPath.IsEmpty ())
if (strSource.Left (strPluginsPath.GetLength ()) ==
strPluginsPath)
if ((strSource.Left (strPluginsPath.GetLength ()).CompareNoCase (strPluginsPath)) == 0)
strSource = strSource.Mid (strPluginsPath.GetLength ());

ar.WriteString ("<include ");
Expand Down

0 comments on commit 95d4dcb

Please sign in to comment.