diff --git a/code/nel/src/net/service.cpp b/code/nel/src/net/service.cpp index 9f917e21b..8f57d1c92 100644 --- a/code/nel/src/net/service.cpp +++ b/code/nel/src/net/service.cpp @@ -254,11 +254,7 @@ void cbDirectoryChanged (IVariable &var) // Update the running directory if needed if (var.getName() == "RunningDirectory") { -#ifdef NL_OS_WINDOWS - _chdir (vp.c_str()); -#else - chdir (vp.c_str()); -#endif + CPath::setCurrentPath(vp); } // Call the callback if provided