mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-10 01:09:34 +00:00
Changed: #877 World editor crashes on launch ...
This commit is contained in:
parent
690a7db4ea
commit
b57d7edea3
1 changed files with 4 additions and 4 deletions
|
@ -280,7 +280,7 @@ struct TSetLastFolder
|
||||||
vector<string> folders;
|
vector<string> folders;
|
||||||
str = CPath::standardizePath(str, false);
|
str = CPath::standardizePath(str, false);
|
||||||
#ifdef NL_OS_WINDOWS
|
#ifdef NL_OS_WINDOWS
|
||||||
explode(str, "/", folders, true);
|
explode(str, std::string("/"), folders, true);
|
||||||
#else // NL_OS_WINDOW
|
#else // NL_OS_WINDOW
|
||||||
NLMISC::splitString(str, "/", folders);
|
NLMISC::splitString(str, "/", folders);
|
||||||
#endif // NL_OS_WINDOWS
|
#endif // NL_OS_WINDOWS
|
||||||
|
@ -367,13 +367,13 @@ int main()
|
||||||
CConfigFile::CVar &filters = cf.getVar("Filters");
|
CConfigFile::CVar &filters = cf.getVar("Filters");
|
||||||
|
|
||||||
// store the filters
|
// store the filters
|
||||||
for (int i=0; i<filters.size(); ++i)
|
for (uint i=0; i<filters.size(); ++i)
|
||||||
{
|
{
|
||||||
Filters.push_back(filters.asString(i));
|
Filters.push_back(filters.asString(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
// add the search paths
|
// add the search paths
|
||||||
for (int i=0; i<paths.size(); ++i)
|
for (uint i=0; i<paths.size(); ++i)
|
||||||
{
|
{
|
||||||
CPath::addSearchPath(paths.asString(i), true, false);
|
CPath::addSearchPath(paths.asString(i), true, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue