Skip to content

Commit

Permalink
Fix #37
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasGrosjean committed Sep 6, 2020
1 parent 4ae69de commit 33e1807
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parsing/HoI4ParsedFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ public String getFilePath(Language language, boolean source)
if (source) {
return sourceTroncatedFilePath + "_" + language.getCode().toLowerCase() + ".yml";
} else {
return destTroncatedFilePath + "_" + language.getCode().toLowerCase() + ".yml";
String troncatedFilePath = (!"".equals(destTroncatedFilePath)) ? destTroncatedFilePath : sourceTroncatedFilePath;
return troncatedFilePath + "_" + language.getCode().toLowerCase() + ".yml";
}
}

Expand Down

0 comments on commit 33e1807

Please sign in to comment.