Core/Spells: Fixed gcc 14 build

This commit is contained in:
Shauren
2024-05-23 22:32:15 +02:00
parent e516707410
commit 0fb81435bc
4 changed files with 12 additions and 2 deletions
+2
View File
@@ -2191,6 +2191,8 @@ void Spell::SearchTargets(SEARCHER& searcher, uint32 containerMask, WorldObject*
}
}
template TC_GAME_API void Spell::SearchTargets<Trinity::WorldObjectListSearcher<Trinity::WorldObjectSpellAreaTargetCheck>>(Trinity::WorldObjectListSearcher<Trinity::WorldObjectSpellAreaTargetCheck>& searcher, uint32 containerMask, WorldObject* referer, Position const* pos, float radius);
WorldObject* Spell::SearchNearbyTarget(SpellEffectInfo const& spellEffectInfo, float range, SpellTargetObjectTypes objectType, SpellTargetCheckTypes selectionType, ConditionContainer const* condList)
{
WorldObject* target = nullptr;
+5
View File
@@ -72,6 +72,9 @@ enum WeaponAttackType : uint8;
namespace Trinity
{
enum class WorldObjectSpellAreaTargetSearchReason;
template <class Check>
struct WorldObjectListSearcher;
}
#define SPELL_CHANNEL_UPDATE_INTERVAL (1 * IN_MILLISECONDS)
@@ -1038,6 +1041,8 @@ namespace Trinity
TC_GAME_API void SelectRandomInjuredTargets(std::list<WorldObject*>& targets, size_t maxTargets, bool prioritizePlayers, Unit const* prioritizeGroupMembersOf = nullptr);
}
extern template void Spell::SearchTargets<Trinity::WorldObjectListSearcher<Trinity::WorldObjectSpellAreaTargetCheck>>(Trinity::WorldObjectListSearcher<Trinity::WorldObjectSpellAreaTargetCheck>& searcher, uint32 containerMask, WorldObject* referer, Position const* pos, float radius);
using SpellEffectHandlerFn = void(Spell::*)();
#endif
+2 -2
View File
@@ -68,13 +68,13 @@ namespace GameTime
}
template<>
TC_GAME_API SystemTimePoint GetTime<std::chrono::system_clock>()
SystemTimePoint GetTime<std::chrono::system_clock>()
{
return GetSystemTime();
}
template<>
TC_GAME_API TimePoint GetTime<std::chrono::steady_clock>()
TimePoint GetTime<std::chrono::steady_clock>()
{
return Now();
}
+3
View File
@@ -54,6 +54,9 @@ namespace GameTime
TC_GAME_API WowTime const* GetWowTime();
void UpdateGameTimers();
template<> TC_GAME_API SystemTimePoint GetTime<std::chrono::system_clock>();
template<> TC_GAME_API TimePoint GetTime<std::chrono::steady_clock>();
}
#endif