Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove committed Nov 3, 2023
1 parent 6282e8a commit c38ed3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions skyrim-platform/src/platform_se/skyrim_platform/EventUtils.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#pragma once

template <>
inline RE::BSTEventSource<RE::ActorKill::Event>* GetEventSource()
{
return RE::ActorKill::GetEventSource();
}

template <class E>
inline RE::BSTEventSource<E>* GetEventSource()
{
return RE::ScriptEventSourceHolder::GetSingleton()->GetEventSource<E>();
}

template <>
inline RE::BSTEventSource<RE::ActorKill::Event>* GetEventSource()
{
return RE::ActorKill::GetEventSource();
}

template <class T, class E = T::Event>
requires HasEvent<T>
inline RE::BSTEventSource<E>* GetEventSource()
Expand Down

0 comments on commit c38ed3d

Please sign in to comment.