Created
December 12, 2010 19:02
-
-
Save rsa/738244 to your computer and use it in GitHub Desktop.
pets 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp | |
index 2de95d6..ab8fda0 100644 | |
--- a/src/game/Unit.cpp | |
+++ b/src/game/Unit.cpp | |
@@ -6214,10 +6214,7 @@ Pet* Unit::GetPet() const | |
. | |
Pet* Unit::_GetPet(ObjectGuid guid) const | |
{ | |
- if (Map* pMap = GetMap()) | |
- return pMap->GetPet(guid); | |
- else | |
- return NULL; | |
+ return ObjectAccessor::FindPet(guid); | |
} | |
. | |
void Unit::RemoveMiniPet() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment