Fix continent path bug

This commit is contained in:
kaetemi 2014-08-17 15:58:42 +02:00
parent 41f6e70dc9
commit 75e2841519

View file

@ -202,7 +202,7 @@ static void loadIGFromContinent(NLMISC::CConfigFile &parameter, std::list<CInsta
// Load the form // Load the form
NLGEORGES::UFormLoader *loader = NLGEORGES::UFormLoader::createLoader(); NLGEORGES::UFormLoader *loader = NLGEORGES::UFormLoader::createLoader();
// //
std::string pathName = level_design_world_directory.asString() + "/" + continentName; std::string pathName = CPath::lookup(continentName); // level_design_world_directory.asString() + "/" + continentName;
if (pathName.empty()) if (pathName.empty())
{ {
nlwarning("Can't find continent form : %s", continentName.c_str()); nlwarning("Can't find continent form : %s", continentName.c_str());