Initialization to prevent unforseen consequences
This commit is contained in:
parent
5162b49007
commit
01f749b81f
3 changed files with 15 additions and 15 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue