Skip to content

Commit bece8ff

Browse files
committed
fix assignment
1 parent 4a747b3 commit bece8ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

export/src/fmu4cpp/fmi2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ fmi2Status fmi2GetFMUstate(fmi2Component c, fmi2FMUstate *state) {
468468
const auto component = static_cast<Fmi2Component *>(c);
469469

470470
if (auto s = component->slave->getFMUState()) {
471-
state = &s;
471+
*state = s;
472472
return fmi2OK;
473473
}
474474

0 commit comments

Comments
 (0)