Bug in COPYEREG keyword - look up wrong item

This commit is contained in:
Joakim Hove 2020-10-20 08:22:22 +02:00
parent 452c222f71
commit eb7cb2f94a

View File

@ -874,7 +874,7 @@ void FieldProps::handle_COPY(const DeckKeyword& keyword, Box box, bool region) {
if (region) {
int region_value = record.getItem(2).get<int>(0);
const auto& region_item = record.getItem(4);
const auto& region_item = record.getItem(3);
const auto& region_name = this->region_name( region_item );
index_list = this->region_index(region_name, region_value);
} else {