diff --git a/src/model.c b/src/model.c index 1d8ca74..332b9a4 100644 --- a/src/model.c +++ b/src/model.c @@ -103,13 +103,13 @@ int ModelLoad(int id) // TODO unload ! void ModelRun(int id) { // Creating structure for the Scheduler - SchedInit(knownModel[id]->scheduler); + SchedInit(loadedModel[id]->scheduler); } void ModelStop(int id) { // Creating structure for the Scheduler - knownModel[id]->scheduler->pleaseStop = true; + loadedModel[id]->scheduler->pleaseStop = true; printLog("Model %d stopped!\n", id); }