summaryrefslogtreecommitdiff
path: root/src/group_gui.cpp
diff options
context:
space:
mode:
authorPeterN <peter@fuzzle.org>2019-02-15 18:43:33 +0000
committerGitHub <noreply@github.com>2019-02-15 18:43:33 +0000
commit3a4b6b476b3de9daa0310280b3866f0eb0d805de (patch)
tree92ed7ca673f041cb1698491c9bcd7e1a982763fb /src/group_gui.cpp
parent57734fd85d0a5ae867c2d6ed4d661e177117d914 (diff)
downloadopenttd-3a4b6b476b3de9daa0310280b3866f0eb0d805de.tar.xz
Change: Use selected group as parent when creating a new group. (#7224)
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r--src/group_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index ce607c326..b5f33ff52 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -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;
}