Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 81c1d45

Browse files
committed
Probably fix LuaMan::FileOpen failing to open
1 parent 8ce229e commit 81c1d45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Managers/LuaMan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ namespace RTE {
542542
return -1;
543543
}
544544

545-
std::string fullPath = System::GetWorkingDirectory() + fileName;
545+
std::string fullPath = System::GetWorkingDirectory() + g_PresetMan.GetFullModulePath(fileName);
546546
if ((fullPath.find("..") == std::string::npos) && (fullPath.find(System::GetModulePackageExtension()) != std::string::npos)) {
547547

548548
#ifdef _WIN32

0 commit comments

Comments
 (0)