refs #7649
Change-Id: Id1c98fd334a9a633e5ccf676f99bf19b7ba3af75
int returnValue;
const char *error = "";
- FMI1 fmi = fmus[id];
+ FMI1 &fmi = fmus[id];
if (fmi.version == 1) {
returnValue = FMI1_CS_INSTANTIATE(fmi.fmu, "", &error);
} else if (fmi.version == 2) {
int returnValue;
const char *error = "";
- FMI1 fmi = fmus[id];
+ FMI1 &fmi = fmus[id];
if (fmi.version == 1) {
returnValue = FMI1_CS_STEP(fmi.fmu, fmi.currentTime, fmi.timeStep, &error);
} else if (fmi.version == 2) {