1
0
forked from 0ad/0ad

This was SVN commit r10430.

This commit is contained in:
historic_bruno 2011-10-26 05:41:57 +00:00
parent c82ebd7ca9
commit ab6863c484

View File

@ -642,7 +642,7 @@ bool ScenarioEditor::OpenFile(const wxString& name, const wxString& filename)
fullFilename.SetExt(_T("pmp"));
// check if pmp exists
qVFSFileExists qry(wxString(mapPath + fullFilename.GetFullName()).wc_str());
qVFSFileExists qry(std::wstring((mapPath + fullFilename.GetFullName()).wc_str()));
qry.Post();
if (!qry.exists)
{
@ -653,7 +653,7 @@ bool ScenarioEditor::OpenFile(const wxString& name, const wxString& filename)
// Every map requires an xml file, so check that it exists
wxFileName xmlName(name);
xmlName.SetExt(_T("xml"));
qVFSFileExists qry(wxString(mapPath + xmlName.GetFullName()).wc_str());
qVFSFileExists qry(std::wstring((mapPath + xmlName.GetFullName()).wc_str()));
qry.Post();
if (!qry.exists)
{