From dd1c7257b760f4c97c84e66d4ebb4f32fff8a499 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 23 Feb 2015 00:20:47 +0300 Subject: eathena: fix crash if pet went outside of visible area. --- src/being/being.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/being/being.cpp') 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::iterator, it, mPets) -- cgit v1.2.3-70-g09d2