summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/being/actorsprite.h7
-rw-r--r--src/being/being.cpp12
2 files changed, 13 insertions, 6 deletions
diff --git a/src/being/actorsprite.h b/src/being/actorsprite.h
index 75df5342e..ff413f040 100644
--- a/src/being/actorsprite.h
+++ b/src/being/actorsprite.h
@@ -227,10 +227,9 @@ class ActorSprite notfinal : public CompoundSprite, public Actor
const IsStart start);
void setupSpriteDisplay(const SpriteDisplay &display,
- const ForceDisplay forceDisplay
- = ForceDisplay_true,
- const int imageType = 0,
- const std::string &color = "");
+ const ForceDisplay forceDisplay,
+ const int imageType,
+ const std::string &color);
/** Load the target cursors into memory */
static void initTargetCursor();
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 914462892..e43b71600 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -457,14 +457,22 @@ void Being::setSubtype(const BeingTypeId subtype,
mInfo = NPCDB::get(mSubType);
if (mInfo != nullptr)
{
- setupSpriteDisplay(mInfo->getDisplay(), ForceDisplay_false);
+ setupSpriteDisplay(mInfo->getDisplay(),
+ ForceDisplay_false,
+ 0,
+ std::string());
mYDiff = mInfo->getSortOffsetY();
}
break;
case ActorType::Avatar:
mInfo = AvatarDB::get(mSubType);
if (mInfo != nullptr)
- setupSpriteDisplay(mInfo->getDisplay(), ForceDisplay_false);
+ {
+ setupSpriteDisplay(mInfo->getDisplay(),
+ ForceDisplay_false,
+ 0,
+ std::string());
+ }
break;
case ActorType::Player:
{