Fixes bugs 476, 486: Reset code model init flag,

required when any run is called a second time.
This commit is contained in:
Holger Vogt 2020-04-17 22:39:09 +02:00
parent c7e9c3884e
commit b356b00014
1 changed files with 3 additions and 0 deletions

View File

@ -531,6 +531,9 @@ static int EVTsetup_load_ptrs(
/* Get the MIFinstance pointer */
fast = ckt->evt->info.inst_table[i]->inst_ptr;
/* Reset init flag, required when any run is called a second time */
fast->initialized = FALSE;
/* Loop through all connections */
num_conn = fast->num_conn;
for(j = 0; j < num_conn; j++) {