1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 17:39:09 +00:00

Fix #6844: Compile warning when compiling dedicated server (#6849)

This commit is contained in:
Ingo von Borstel
2018-07-07 18:48:17 +02:00
committed by GitHub
parent 2ed0e30a8f
commit 88b77a7883

View File

@@ -671,7 +671,9 @@ Layouter::Layouter(const char *str, int maxw, TextColour colour, FontSize fontsi
} else {
/* Line is new, layout it */
FontState old_state = state;
#if defined(WITH_ICU_LAYOUT) || defined(WITH_UNISCRIBE)
const char *old_str = str;
#endif
#ifdef WITH_ICU_LAYOUT
GetLayouter<ICUParagraphLayoutFactory>(line, str, state);