summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-16 02:43:31 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-16 02:43:31 +0300
commitcbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b (patch)
tree5acc50addb37120aa7719e52a2fa0d451118fb74 /src/being.cpp
parent572c2e0048400388c71b962b74b9a443a0b076a0 (diff)
downloadplus-cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b.tar.gz
plus-cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b.tar.bz2
plus-cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b.tar.xz
plus-cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b.zip
Add race name to status and debug windows.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 47a74c7b2..e1cb9b0ae 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -338,7 +338,15 @@ void Being::setSubtype(Uint16 subtype)
// Prevent showing errors when sprite doesn't exist
if (!ItemDB::exists(id))
+ {
id = -100;
+ setRaceName(_("Human"));
+ }
+ else
+ {
+ const ItemInfo &info = ItemDB::get(id);
+ setRaceName(info.getName());
+ }
setSprite(Net::getCharHandler()->baseSprite(), id);
}