OSDN Git Service

[Refactor] MonsterEntity::nickname の型を std::string に変更
[hengbandforosx/hengbandosx.git] / src / system / monster-entity.cpp
index 8126d95..b5f06fb 100644 (file)
@@ -24,7 +24,7 @@ bool MonsterEntity::is_hostile() const
 
 bool MonsterEntity::is_named() const
 {
-    return this->nickname != 0;
+    return !this->nickname.empty();
 }
 
 bool MonsterEntity::is_named_pet() const