diff --git a/2dlib/font.cpp b/2dlib/font.cpp index 5618661f..adaa36f8 100644 --- a/2dlib/font.cpp +++ b/2dlib/font.cpp @@ -168,15 +168,12 @@ inline int READ_FONT_DATA(FONTFILE ffile, void *buf, int size, int nelem) { } inline FONTFILE OPEN_FONT(const char *filename, bool &success) { - FONTFILE fp; - int file_id; - success = false; - fp = (FONTFILE)cfopen(filename, "rb"); + FONTFILE fp = (FONTFILE)cfopen(filename, "rb"); if (!fp) return NULL; - file_id = READ_FONT_INT(fp); + uint32_t file_id = READ_FONT_INT(fp); if (file_id != 0xfeedbaba) return (FONTFILE)(-1);