Skip to content

Instantly share code, notes, and snippets.

@rsa
Created November 8, 2010 06:44
Show Gist options
  • Save rsa/667441 to your computer and use it in GitHub Desktop.
Save rsa/667441 to your computer and use it in GitHub Desktop.
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index cdd9d9b..305d461 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -1822,9 +1822,6 @@ Creature* WorldObject::SummonCreature(uint32 id, float x, float y, float z, floa
pCreature->Summon(spwtype, despwtime);
- if (GetTypeId() == TYPEID_UNIT)
- pCreature->SetCreatorGuid(GetObjectGuid());
-
if(GetTypeId()==TYPEID_UNIT && ((Creature*)this)->AI())
((Creature*)this)->AI()->JustSummoned(pCreature);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment