Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
fix copy&paste error
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - #2842
  • Loading branch information
hkiel authored and adrpo committed Dec 20, 2018
1 parent dc1b9df commit 2e98b52
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 2e98b52

Please sign in to comment.