diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-23 00:20:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-23 00:21:10 +0300 |
commit | dd1c7257b760f4c97c84e66d4ebb4f32fff8a499 (patch) | |
tree | ba75dfbdff9b7f7279fd20ecf9a78fc6d959cd03 /src/being/being.cpp | |
parent | 839cb18574b493cfbf66c03aa031bd040b2a7972 (diff) | |
download | mv-dd1c7257b760f4c97c84e66d4ebb4f32fff8a499.tar.gz mv-dd1c7257b760f4c97c84e66d4ebb4f32fff8a499.tar.bz2 mv-dd1c7257b760f4c97c84e66d4ebb4f32fff8a499.tar.xz mv-dd1c7257b760f4c97c84e66d4ebb4f32fff8a499.zip |
eathena: fix crash if pet went outside of visible area.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r-- | src/being/being.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index 4a3e4d0cb..e8ab55736 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -281,6 +281,7 @@ Being::~Being() { if (mType == ActorType::LocalPet) mOwner->unassignPet(this); + mOwner = nullptr; } FOR_EACH (std::vector<Being*>::iterator, it, mPets) |