preprocessor: fix bug in shocks statement for removal of exos

issue#70
Houtan Bastani 2015-03-31 12:45:31 +02:00
parent 52e3bc993c
commit e2c0f5698f
1 changed files with 2 additions and 2 deletions

View File

@ -79,8 +79,8 @@ AbstractShocksStatement::reindexDetShocksSymbIds(DataTree &dynamic_datatree, Sym
for (int i=0; i<it->second.size(); i++)
{
DetShockElement dse;
dse.period1 = it->second[1].period1;
dse.period2 = it->second[1].period2;
dse.period1 = it->second[i].period1;
dse.period2 = it->second[i].period2;
dse.value = it->second[i].value->cloneDynamicReindex(dynamic_datatree, orig_symbol_table);
det_shock_vec.push_back(dse);
}