Skip to content

Commit

Permalink
fix(event): use the proper constructor here
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Jan 13, 2025
1 parent 7ac5d56 commit 6804dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loader/include/Geode/loader/Event.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,6 @@ namespace geode {
// Creates an EventListener that is active for the entire lifetime of the game. You have no way of disabling the listener, so only use this if you want to always listen for certain events!
template <is_filter T>
void globalListen(typename T::Callback callback, T filter = T()) {
new EventListener<T>({callback, filter});
new EventListener<T>(callback, filter);
}
}

0 comments on commit 6804dff

Please sign in to comment.