ref: 1fe73f9aab36aa9679f35ccd0f5cc062d5b4d557
parent: 413fe560e45e086841280d20f4f0d73487495062
author: Clownacy <[email protected]>
date: Wed Jan 22 20:05:29 EST 2020
Explicitly compare pointers in Font.cpp to NULL
--- a/src/Font.cpp
+++ b/src/Font.cpp
@@ -1133,12 +1133,12 @@
CachedGlyph *glyph = GetGlyphCached(font_object, unicode_value);
- if (glyph)
+ if (glyph != NULL)
{
const int letter_x = x + pen_x + glyph->x;
const int letter_y = y + glyph->y;
- if (glyph->backend)
+ if (glyph->backend != NULL)
Backend_DrawGlyph(surface, glyph->backend, letter_x, letter_y, colours);
pen_x += glyph->x_advance;