Skip to content

Commit

Permalink
fix bad dir in Resouce() (#2163)
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle authored Jan 8, 2025
1 parent d85fadf commit b266d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DMCompiler/DM/Expressions/Constant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public Resource(DMCompiler compiler, Location location, string filePath) : base(

// Search every defined FILE_DIR
foreach (string resourceDir in compiler.ResourceDirectories) {
var directory = FindDirectory(resourceDir, fileDir);
var directory = FindDirectory(resourceDir == string.Empty ? "./" : resourceDir, fileDir);

if (directory != null) {
// Perform a case-insensitive search for the file
Expand Down

0 comments on commit b266d00

Please sign in to comment.