Fix 2e136285: Crash when CTRL-clicking on a sign (#9345)

This commit is contained in:
Vít Šefl 2021-06-10 15:49:25 +02:00 committed by GitHub
parent 37b285ad83
commit f899772ec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);