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

pull/332/head
Vít Šefl 3 years ago committed by GitHub
parent 37b285ad83
commit f899772ec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save