summaryrefslogtreecommitdiff
path: root/newgrf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/newgrf.c b/newgrf.c
index ea91c1e33..fa7d0ed86 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -2483,9 +2483,7 @@ static void SafeInfo(byte *buf, int len)
info = name + name_len + 1;
info_len = ttd_strnlen(info, len);
- if (info_len < len) {
- _cur_grfconfig->info = TranslateTTDPatchCodes(info);
- }
+ if (info_len < len) _cur_grfconfig->info = TranslateTTDPatchCodes(info);
}
}