diff options
Diffstat (limited to 'src/ui_elements/UI.c')
| -rw-r--r-- | src/ui_elements/UI.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui_elements/UI.c b/src/ui_elements/UI.c index a9ab498..c653731 100644 --- a/src/ui_elements/UI.c +++ b/src/ui_elements/UI.c @@ -40,6 +40,7 @@ bool IsMouseInRec(Rectangle rec) { } void DrawTextInRec(Rectangle rec, char *text, Font *font, int height, Color color, float padding, int *scroll) { + if (text == NULL) return; int spans[MAX_LINES]; rec.x += padding; rec.y += padding; |
