Skip to content

Commit

Permalink
Changed * (stdin) scripts to use A_InitialWorkingDir as A_ScriptDir.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexikos committed Sep 12, 2018
1 parent 47e9f12 commit 0cd1299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/script.cpp
Expand Up @@ -720,7 +720,7 @@ ResultType Script::Init(global_struct &g, LPTSTR aScriptFilename, bool aIsRestar
// condition is a path being too long for GetFullPathName to expand it into buf,
// in which case buf and mFileSpec are now empty, and this will cause LoadFromFile()
// to fail and the program to exit.
//mFileDir = _T(""); // Already done by the constructor.
mFileDir = g_WorkingDirOrig;
filename_marker = buf;
}
if ( !(mFileName = SimpleHeap::Malloc(filename_marker)) )
Expand Down

0 comments on commit 0cd1299

Please sign in to comment.