fix index error

This commit is contained in:
Axel Kohlmeyer
2021-10-31 19:46:37 -04:00
parent 6b3ddb8a72
commit 0bc9f887ec

View File

@ -1742,7 +1742,7 @@ void Domain::add_region(int narg, char **arg)
if (narg < 2) error->all(FLERR,"Illegal region command");
if (strcmp(arg[1],"delete") == 0) {
delete_region(arg[2]);
delete_region(arg[0]);
return;
}