Skip to content

Commit

Permalink
Fix empty file name bug
Browse files Browse the repository at this point in the history
Signed-off-by: ClemensLinnhoff <clemens.linnhoff@persival.de>
  • Loading branch information
ClemensLinnhoff committed Aug 7, 2024
1 parent 52e8fa9 commit 942ca17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OSMPTraceFilePlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ fmi2Status COSMPTraceFilePlayer::DoCalc(fmi2Real current_communication_point, fm
fs::path dir = FmiTracePath();
string binary_file_name = dir / FmiTraceName();

if (binary_file_name.empty())
if (FmiTraceName().empty())
{
// Get first .osi file in directory
std::vector<fs::directory_entry> entries;
Expand Down

0 comments on commit 942ca17

Please sign in to comment.