diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-05-05 23:08:57 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-05 23:08:57 -0600 |
commit | 678c2316e34021bb16ac08eb48186f5570dc691b (patch) | |
tree | a7bf0b4d22e0b41e31f6823a04d2d6f8f0b6e98b /src/player.cpp | |
parent | a1f5bf3b2d6fe9cfb3106d2da798a62cda546f92 (diff) | |
download | mana-678c2316e34021bb16ac08eb48186f5570dc691b.tar.gz mana-678c2316e34021bb16ac08eb48186f5570dc691b.tar.bz2 mana-678c2316e34021bb16ac08eb48186f5570dc691b.tar.xz mana-678c2316e34021bb16ac08eb48186f5570dc691b.zip |
Fix clearing of NPC sprites
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/player.cpp b/src/player.cpp index abc01152..c5f0d6cd 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -188,6 +188,10 @@ void Player::setHairStyle(int style, int color) void Player::setSprite(int slot, int id, const std::string &color) { + // TODO: Find a better way + if (getType() == NPC) + return; + // id = 0 means unequip if (id == 0) { |