Core: Fix Winstantiation-after-specialization warnings

Closes #20211
This commit is contained in:
Shauren
2017-09-02 01:06:10 +02:00
parent cbd1c09267
commit 52c7f12ed3
2 changed files with 25 additions and 58 deletions

View File

@@ -42,37 +42,32 @@ uint32 ActivePoolData::GetActiveObjectCount(uint32 pool_id) const
// Method that tell if a creature is spawned currently
template<>
bool ActivePoolData::IsActiveObject<Creature>(uint64 db_guid) const
TC_GAME_API bool ActivePoolData::IsActiveObject<Creature>(uint64 db_guid) const
{
return mSpawnedCreatures.find(db_guid) != mSpawnedCreatures.end();
}
// Method that tell if a gameobject is spawned currently
template<>
bool ActivePoolData::IsActiveObject<GameObject>(uint64 db_guid) const
TC_GAME_API bool ActivePoolData::IsActiveObject<GameObject>(uint64 db_guid) const
{
return mSpawnedGameobjects.find(db_guid) != mSpawnedGameobjects.end();
}
// Method that tell if a pool is spawned currently
template<>
bool ActivePoolData::IsActiveObject<Pool>(uint64 sub_pool_id) const
TC_GAME_API bool ActivePoolData::IsActiveObject<Pool>(uint64 sub_pool_id) const
{
return mSpawnedPools.find(sub_pool_id) != mSpawnedPools.end();
}
// Method that tell if a quest can be started
template<>
bool ActivePoolData::IsActiveObject<Quest>(uint64 quest_id) const
TC_GAME_API bool ActivePoolData::IsActiveObject<Quest>(uint64 quest_id) const
{
return mActiveQuests.find(quest_id) != mActiveQuests.end();
}
template TC_GAME_API bool ActivePoolData::IsActiveObject<Creature>(uint64) const;
template TC_GAME_API bool ActivePoolData::IsActiveObject<GameObject>(uint64) const;
template TC_GAME_API bool ActivePoolData::IsActiveObject<Pool>(uint64) const;
template TC_GAME_API bool ActivePoolData::IsActiveObject<Quest>(uint64) const;
template<>
void ActivePoolData::ActivateObject<Creature>(uint64 db_guid, uint32 pool_id)
{