OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Refactor] MonsterEntity::nickname の型を std::string に変更
[hengbandforosx/hengbandosx.git]
/
src
/
system
/
monster-entity.cpp
diff --git
a/src/system/monster-entity.cpp
b/src/system/monster-entity.cpp
index
8126d95
..
b5f06fb
100644
(file)
--- a/
src/system/monster-entity.cpp
+++ b/
src/system/monster-entity.cpp
@@
-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