fix bug causing segfaults

This commit is contained in:
Axel Kohlmeyer 2021-04-02 17:21:34 -04:00
parent af6452065f
commit 2a10b5ba69
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 1 additions and 1 deletions

View File

@ -1826,7 +1826,7 @@ void Domain::delete_region(int iregion)
// delete and move other Regions down in list one slot
delete regions[iregion];
for (int i = iregion+1; iregion < nregion; ++i)
for (int i = iregion+1; i < nregion; ++i)
regions[i-1] = regions[i];
nregion--;
}