summaryrefslogtreecommitdiff
path: root/src/monster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/monster.cpp')
-rw-r--r--src/monster.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/monster.cpp b/src/monster.cpp
index c8abcc05..eaea6225 100644
--- a/src/monster.cpp
+++ b/src/monster.cpp
@@ -211,12 +211,10 @@ const MonsterInfo &Monster::getInfo() const
#endif
}
-void Monster::showName(bool show)
+void Monster::setShowName(bool show)
{
- if (mText)
- {
- delete mText;
- }
+ delete mText;
+
if (show)
{
mText = new Text(getInfo().getName(), mPx + NAME_X_OFFSET,