mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-10 08:00:05 +00:00
(svn r18564) -Fix: silence a warning
This commit is contained in:
parent
6803672c88
commit
5ac036720b
@ -120,7 +120,7 @@ static FT_Error GetFontByFaceName(const char *font_name, FT_Face *face)
|
|||||||
font_namep = MallocT<TCHAR>(MAX_PATH);
|
font_namep = MallocT<TCHAR>(MAX_PATH);
|
||||||
MB_TO_WIDE_BUFFER(font_name, font_namep, MAX_PATH * sizeof(TCHAR));
|
MB_TO_WIDE_BUFFER(font_name, font_namep, MAX_PATH * sizeof(TCHAR));
|
||||||
#else
|
#else
|
||||||
font_namep = (char*)font_name; // only cast because in unicode pointer is not const
|
font_namep = const_cast<char *>(font_name); // only cast because in unicode pointer is not const
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (index = 0;; index++) {
|
for (index = 0;; index++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user