Change: Use selected group as parent when creating a new group. (#7224)

This commit is contained in:
PeterN
2019-02-15 18:43:33 +00:00
committed by GitHub
parent 57734fd85d
commit 3a4b6b476b
2 changed files with 17 additions and 5 deletions

View File

@@ -687,7 +687,7 @@ public:
}
case WID_GL_CREATE_GROUP: { // Create a new group
DoCommandP(0, this->vli.vtype, 0, CMD_CREATE_GROUP | CMD_MSG(STR_ERROR_GROUP_CAN_T_CREATE), CcCreateGroup);
DoCommandP(0, this->vli.vtype, this->vli.index, CMD_CREATE_GROUP | CMD_MSG(STR_ERROR_GROUP_CAN_T_CREATE), CcCreateGroup);
break;
}