summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-01-28 20:43:22 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2009-01-28 20:43:22 +0100
commitc3ac08bc7629b69ece1a7a44e4d224b95ea51f27 (patch)
tree7a647f3dd1875054f362521a16348ab28af12faf
parentce36f9733315ffecb41379f9f07063133968a54f (diff)
parent0d4142a891cd228da24ee3aa3bbd7dc622da5b75 (diff)
downloadmana-c3ac08bc7629b69ece1a7a44e4d224b95ea51f27.tar.gz
mana-c3ac08bc7629b69ece1a7a44e4d224b95ea51f27.tar.bz2
mana-c3ac08bc7629b69ece1a7a44e4d224b95ea51f27.tar.xz
mana-c3ac08bc7629b69ece1a7a44e4d224b95ea51f27.zip
Merge branch 'master' of git@gitorious.org:tmw/eathena
-rw-r--r--.gitignore1
-rw-r--r--src/player.cpp5
2 files changed, 6 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 2eeb0c11..0693d1c7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,6 +27,7 @@ Makefile
config.h
config.log
config.status
+config.status.lineno
po/POTFILES
.deps
stamp-h1
diff --git a/src/player.cpp b/src/player.cpp
index ec3b1c1c..5ab94595 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -144,6 +144,11 @@ void Player::setSprite(int slot, int id, std::string color)
{
delete mSprites[slot];
mSprites[slot] = NULL;
+
+ if (slot == WEAPON_SPRITE)
+ {
+ mEquippedWeapon = NULL;
+ }
}
else
{