Skip to content

Instantly share code, notes, and snippets.

@tst12
Created May 12, 2011 13:12
Show Gist options
  • Save tst12/968459 to your computer and use it in GitHub Desktop.
Save tst12/968459 to your computer and use it in GitHub Desktop.
sm1
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 9f14932..8fbd2ba 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -6592,6 +6597,9 @@ void Unit::RemoveGuardian( Pet* pet )
void Unit::RemoveGuardians()
{
+ uint64 uG = GetObjectGuid().GetRawValue();
+ uint32 uE = GetEntry();
+
while(!m_guardianPets.empty())
{
uint64 guid = *m_guardianPets.begin();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment