From b73e51c8993c6e2eef7a28a79ea79b7a6d61783d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Dec 2017 00:26:00 +0300 Subject: Remove default parameters from animatedsprites. --- src/resources/db/emotedb.cpp | 3 ++- src/resources/sprite/animatedsprite.h | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/resources') diff --git a/src/resources/db/emotedb.cpp b/src/resources/db/emotedb.cpp index e519b531d..c9eb8a513 100644 --- a/src/resources/db/emotedb.cpp +++ b/src/resources/db/emotedb.cpp @@ -54,7 +54,8 @@ void EmoteDB::load() EmoteSprite *const unknownSprite = new EmoteSprite; unknownSprite->sprite = AnimatedSprite::load(pathJoin(paths.getStringValue( "sprites"), paths.getStringValue( - "spriteErrorFile"))); + "spriteErrorFile")), + 0); unknownSprite->name = "unknown"; unknownSprite->id = 0; mUnknown.sprites.push_back(unknownSprite); diff --git a/src/resources/sprite/animatedsprite.h b/src/resources/sprite/animatedsprite.h index 01a142f31..e45ffd34e 100644 --- a/src/resources/sprite/animatedsprite.h +++ b/src/resources/sprite/animatedsprite.h @@ -51,12 +51,11 @@ class AnimatedSprite final : public Sprite * @param variant the sprite variant */ static AnimatedSprite *load(const std::string &restrict filename, - const int variant = 0) A_WARN_UNUSED; + const int variant) A_WARN_UNUSED; static AnimatedSprite *delayedLoad(const std::string &restrict filename, - const int variant = 0) - A_WARN_UNUSED; + const int variant) A_WARN_UNUSED; static AnimatedSprite *clone(const AnimatedSprite *restrict const anim); -- cgit v1.2.3-60-g2f50