Initialization to prevent unforseen consequences

This commit is contained in:
Rendo 2026-03-14 15:25:25 +05:00
commit 01f749b81f
3 changed files with 15 additions and 15 deletions

View file

@ -11,10 +11,10 @@ class TextureAtlas {
Rectangle full_view() const;
const Texture2D get_texture() const;
private:
int offset_x;
int offset_y;
int width;
int height;
int offset_x = 0;
int offset_y = 0;
int width = 0;
int height = 0;
Texture2D* texture;
};