From 52c7f12ed35f321dc97d8caea2b112287f5ac05b Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 2 Sep 2017 01:06:10 +0200 Subject: Core: Fix Winstantiation-after-specialization warnings Closes #20211 --- src/server/game/Pools/PoolMgr.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/server/game/Pools') diff --git a/src/server/game/Pools/PoolMgr.cpp b/src/server/game/Pools/PoolMgr.cpp index aa7edf99e9c..cce1f9be0a0 100644 --- a/src/server/game/Pools/PoolMgr.cpp +++ b/src/server/game/Pools/PoolMgr.cpp @@ -42,37 +42,32 @@ uint32 ActivePoolData::GetActiveObjectCount(uint32 pool_id) const // Method that tell if a creature is spawned currently template<> -bool ActivePoolData::IsActiveObject(uint64 db_guid) const +TC_GAME_API bool ActivePoolData::IsActiveObject(uint64 db_guid) const { return mSpawnedCreatures.find(db_guid) != mSpawnedCreatures.end(); } // Method that tell if a gameobject is spawned currently template<> -bool ActivePoolData::IsActiveObject(uint64 db_guid) const +TC_GAME_API bool ActivePoolData::IsActiveObject(uint64 db_guid) const { return mSpawnedGameobjects.find(db_guid) != mSpawnedGameobjects.end(); } // Method that tell if a pool is spawned currently template<> -bool ActivePoolData::IsActiveObject(uint64 sub_pool_id) const +TC_GAME_API bool ActivePoolData::IsActiveObject(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(uint64 quest_id) const +TC_GAME_API bool ActivePoolData::IsActiveObject(uint64 quest_id) const { return mActiveQuests.find(quest_id) != mActiveQuests.end(); } -template TC_GAME_API bool ActivePoolData::IsActiveObject(uint64) const; -template TC_GAME_API bool ActivePoolData::IsActiveObject(uint64) const; -template TC_GAME_API bool ActivePoolData::IsActiveObject(uint64) const; -template TC_GAME_API bool ActivePoolData::IsActiveObject(uint64) const; - template<> void ActivePoolData::ActivateObject(uint64 db_guid, uint32 pool_id) { -- cgit v1.2.3