File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -377,26 +377,14 @@ void PoolGroup<Pool>::Spawn1Object(PoolObject* obj)
377377 sPoolMgr ->SpawnPool (obj->guid );
378378}
379379
380- // Method that does the respawn job on the specified creature
381- template <>
382- void PoolGroup<Creature >::ReSpawn1Object(PoolObject* obj)
380+ // Method that does the respawn job on the specified object
381+ template <typename T >
382+ void PoolGroup<T >::ReSpawn1Object(PoolObject* obj)
383383{
384384 Despawn1Object (obj->guid , false , false );
385385 Spawn1Object (obj);
386386}
387387
388- // Method that does the respawn job on the specified gameobject
389- template <>
390- void PoolGroup<GameObject>::ReSpawn1Object(PoolObject* obj)
391- {
392- Despawn1Object (obj->guid , false , false );
393- Spawn1Object (obj);
394- }
395-
396- // Nothing to do for a child Pool
397- template <>
398- void PoolGroup<Pool>::ReSpawn1Object(PoolObject* /* obj*/ ) { }
399-
400388template <>
401389void PoolGroup<Creature>::RemoveRespawnTimeFromDB(ObjectGuid::LowType guid)
402390{
You can’t perform that action at this time.
0 commit comments