diff options
author | smatz <smatz@openttd.org> | 2009-05-16 23:34:14 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-16 23:34:14 +0000 |
commit | 6221d74644922ea4bbba3ed9cd8bbec42398f77b (patch) | |
tree | 0069bbd6bb7525754c5d9353132f5dc64a0996cc /src/group_gui.cpp | |
parent | 814f153b5a98e0030cbd221e6a89e083ce62bb1d (diff) | |
download | openttd-6221d74644922ea4bbba3ed9cd8bbec42398f77b.tar.xz |
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r-- | src/group_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp index ac9dfefdd..cf6ece60c 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -405,7 +405,7 @@ public: default: NOT_REACHED(); } } else { - const Group *g = GetGroup(this->group_sel); + const Group *g = Group::Get(this->group_sel); SetDParam(0, g->index); SetDParam(1, g->num_vehicle); @@ -569,7 +569,7 @@ public: case GRP_WIDGET_RENAME_GROUP: { // Rename the selected roup assert(IsValidGroupID(this->group_sel)); - const Group *g = GetGroup(this->group_sel); + const Group *g = Group::Get(this->group_sel); SetDParam(0, g->index); ShowQueryString(STR_GROUP_NAME, STR_GROUP_RENAME_CAPTION, MAX_LENGTH_GROUP_NAME_BYTES, MAX_LENGTH_GROUP_NAME_PIXELS, this, CS_ALPHANUMERAL, QSF_ENABLE_DEFAULT); @@ -596,7 +596,7 @@ public: case GRP_WIDGET_REPLACE_PROTECTION: if (IsValidGroupID(this->group_sel)) { - const Group *g = GetGroup(this->group_sel); + const Group *g = Group::Get(this->group_sel); DoCommandP(0, this->group_sel, !g->replace_protection, CMD_SET_GROUP_REPLACE_PROTECTION); } |