Change from c_str to std::string

This commit is contained in:
sam-astro 2022-05-24 18:24:32 -04:00
parent b8320da1aa
commit 350072a6ac

View File

@ -803,7 +803,7 @@ int main(int argc, char* argv[])
// Change the current working directory to that of the script
int chErr = chdir(projectDirectory.c_str());
if (chErr < 0)
LogCriticalError("Failed to change directory to: \"" + projectDirectory.c_str() + "\", error num: " + chErr);
LogCriticalError("Failed to change directory to: \"" + projectDirectory + "\", error num: " + chErr);
#if DEVELOPER_MESSAGES
InterpreterLog("Changed directory to " + projectDirectory + "...");
#endif