diff options
author | Tyler Trahan <tyler@tylertrahan.com> | 2021-11-28 07:16:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-28 15:16:42 +0100 |
commit | 802ca4e72231895e9f043a7b380c59dfbba366cd (patch) | |
tree | 3f65113f1b513c0fda4d73e52d4ce1a7ba35d7e7 /src/signs_cmd.cpp | |
parent | 6953df7b5e52d749e50275640197e5fc17e2310c (diff) | |
download | openttd-802ca4e72231895e9f043a7b380c59dfbba366cd.tar.xz |
Fix: Don't try to rename OWNER_DEITY signs in-game (#9716)
Diffstat (limited to 'src/signs_cmd.cpp')
-rw-r--r-- | src/signs_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signs_cmd.cpp b/src/signs_cmd.cpp index 0dd821157..78bbb8b4b 100644 --- a/src/signs_cmd.cpp +++ b/src/signs_cmd.cpp @@ -79,7 +79,7 @@ CommandCost CmdRenameSign(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 { Sign *si = Sign::GetIfValid(p1); if (si == nullptr) return CMD_ERROR; - if (si->owner == OWNER_DEITY && _current_company != OWNER_DEITY && _game_mode != GM_EDITOR) return CMD_ERROR; + if (!CompanyCanRenameSign(si)) return CMD_ERROR; /* Rename the signs when empty, otherwise remove it */ if (!text.empty()) { |