summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVít Šefl <vituscze@gmail.com>2021-06-10 15:49:25 +0200
committerGitHub <noreply@github.com>2021-06-10 15:49:25 +0200
commitf899772ec29b9b802ab07e074dc0421f4e2d1a28 (patch)
tree7e56230c369096222c1daf753ee9092ea44a3f87
parent37b285ad83207d98136a8a36da85f2dec9e415c8 (diff)
downloadopenttd-f899772ec29b9b802ab07e074dc0421f4e2d1a28.tar.xz
Fix 2e136285: Crash when CTRL-clicking on a sign (#9345)
-rw-r--r--src/signs_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp
index 27c618087..711cd735e 100644
--- a/src/signs_gui.cpp
+++ b/src/signs_gui.cpp
@@ -566,7 +566,7 @@ static WindowDesc _query_sign_edit_desc(
void HandleClickOnSign(const Sign *si)
{
if (_ctrl_pressed && (si->owner == _local_company || (si->owner == OWNER_DEITY && _game_mode == GM_EDITOR))) {
- RenameSign(si->index, nullptr);
+ RenameSign(si->index, "");
return;
}
ShowRenameSignWindow(si);