From 5275e589f5347dd202b79739eb3779022ac58887 Mon Sep 17 00:00:00 2001 From: ZXShady <153229951+ZXShady@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:28:23 +0100 Subject: [PATCH] add missing asserts in Font.cpp --- src/CSFML/Graphics/Font.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CSFML/Graphics/Font.cpp b/src/CSFML/Graphics/Font.cpp index 45edd2f..c7eda28 100644 --- a/src/CSFML/Graphics/Font.cpp +++ b/src/CSFML/Graphics/Font.cpp @@ -161,6 +161,7 @@ const sfTexture* sfFont_getTexture(sfFont* font, unsigned int characterSize) //////////////////////////////////////////////////////////// void sfFont_setSmooth(sfFont* font, bool smooth) { + assert(font); font->This.setSmooth(smooth); } @@ -168,6 +169,7 @@ void sfFont_setSmooth(sfFont* font, bool smooth) //////////////////////////////////////////////////////////// bool sfFont_isSmooth(const sfFont* font) { + assert(font); return font->This.isSmooth(); }