[svn] Modify SummonGameObject function to set owner GUID.

Implement spell 23019. Patch provided by Edder.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-10-18 12:02:47 -05:00
parent a3e03f62d0
commit fe453877d1
2 changed files with 4 additions and 21 deletions

View File

@@ -1453,6 +1453,7 @@ GameObject* WorldObject::SummonGameObject(uint32 entry, float x, float y, float
return NULL;
go->SetRespawnTime(respawnTime);
go->SetSpawnedByDefault(false); // do not save respawn time
go->SetOwnerGUID(GetGUID());
map->Add(go);
return go;