From 92d38339754b45a7296891db9617f9ebd0e79f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathis=20Rib=C3=A9mont?= Date: Mon, 24 Jan 2022 08:50:30 +0100 Subject: [PATCH] Button can be created without texture --- Pontu/src/engine/Button.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/Pontu/src/engine/Button.c b/Pontu/src/engine/Button.c index 21c2f09..c475e61 100644 --- a/Pontu/src/engine/Button.c +++ b/Pontu/src/engine/Button.c @@ -8,8 +8,6 @@ P_Button createButton(SDL_Texture* texture, SDL_Texture* hoverTexture ,const int // Declarations P_Button b = { .rect = { .x = coordx, .y = coordy, .w = sizex, .h = sizey }, .onClick = onClick, .drawn = false}; - assert(texture != NULL && "ERROR: Button created without texture"); - b.texture = texture; b.hoverTexture = hoverTexture; return b;