diff options
author | Lloyd Bryant <lloyd_bryant@netzero.net> | 2008-08-16 07:54:32 +0000 |
---|---|---|
committer | Lloyd Bryant <lloyd_bryant@netzero.net> | 2008-08-16 07:54:32 +0000 |
commit | 95bc446f7b2977fb596585998dc4b3de50c65673 (patch) | |
tree | 199563bcb3d1281f17bc925b709720330c78336f /src | |
parent | f16b0615a4b1942f5fb7c55782e3c80c15b70757 (diff) | |
download | mana-95bc446f7b2977fb596585998dc4b3de50c65673.tar.gz mana-95bc446f7b2977fb596585998dc4b3de50c65673.tar.bz2 mana-95bc446f7b2977fb596585998dc4b3de50c65673.tar.xz mana-95bc446f7b2977fb596585998dc4b3de50c65673.zip |
Bugfix for segfault when hitting a warp while targeting another player
Diffstat (limited to 'src')
-rw-r--r-- | src/localplayer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 5f392a52..4e72169f 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -184,6 +184,11 @@ void LocalPlayer::pickUp(FloorItem *item) void LocalPlayer::walk(unsigned char dir) { + + // If they have someone or something targeted, cancel it + if (mTarget) + setTarget(NULL); + if (!mMap || !dir) return; |