diff options
author | Vít Šefl <vituscze@gmail.com> | 2021-06-10 15:49:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-10 15:49:25 +0200 |
commit | f899772ec29b9b802ab07e074dc0421f4e2d1a28 (patch) | |
tree | 7e56230c369096222c1daf753ee9092ea44a3f87 /src | |
parent | 37b285ad83207d98136a8a36da85f2dec9e415c8 (diff) | |
download | openttd-f899772ec29b9b802ab07e074dc0421f4e2d1a28.tar.xz |
Fix 2e136285: Crash when CTRL-clicking on a sign (#9345)
Diffstat (limited to 'src')
-rw-r--r-- | src/signs_gui.cpp | 2 |
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); |