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;