diff options
Diffstat (limited to 'include/components.hpp')
-rw-r--r-- | include/components.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/components.hpp b/include/components.hpp index 0fb8ec6..2215a64 100644 --- a/include/components.hpp +++ b/include/components.hpp @@ -257,12 +257,12 @@ struct Solid : public Component { }; struct SpriteData { + SpriteData(void) = default; SpriteData(std::string path, vec2 off): offset(off) { tex = Texture(path); size = tex.getDim(); - offset = vec2(0.0f, 0.0f); size_tex = vec2(1.0, 1.0); @@ -448,7 +448,7 @@ struct Limb { } float updateRate; /**< How often we will change each frame. */ - float updateCurrent; /**< How much has been updated in the current frame. */ + float updateCurrent = 0; /**< How much has been updated in the current frame. */ unsigned int updateType; /**< What the updateRate will base it's updates off of. ie: Movement, attacking, jumping. */ unsigned int limbID; /**< The id of the limb we will be updating */ |