summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index d851864a3..7755edbc3 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -1610,8 +1610,11 @@ void ActorManager::getMobNames(StringVect &names) const
}
const Being *const being = static_cast<const Being*>(*it);
- if (being->getType() == ActorType::Monster && !being->getName().empty())
+ if (being->getType() == ActorType::Monster &&
+ !being->getName().empty())
+ {
names.push_back(being->getName());
+ }
}
}