Skip to content

Commit

Permalink
fix copy&paste error
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2842
  • Loading branch information
hkiel authored and OpenModelica-Hudson committed Dec 20, 2018
1 parent 802d9c8 commit 2b1c2bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SimulationRuntime/c/simulation/modelinfo.c
Expand Up @@ -289,8 +289,8 @@ static int getVarIdByName(DATA *data, const char* varName)
return data->modelData->integerParameterData[i].info.id;

for(i=0;i<data->modelData->nVariablesBoolean;++i)
if (strcmp(varName, data->modelData->integerParameterData[i].info.name) == 0)
return data->modelData->integerParameterData[i].info.id;
if (strcmp(varName, data->modelData->booleanVarsData[i].info.name) == 0)
return data->modelData->booleanVarsData[i].info.id;

for(i=0;i<data->modelData->nParametersBoolean;++i)
if (strcmp(varName, data->modelData->booleanParameterData[i].info.name) == 0)
Expand Down

0 comments on commit 2b1c2bf

Please sign in to comment.