fix(event): use the proper constructor here

This commit is contained in:
Fleeym 2025-01-14 00:44:07 +02:00
parent 7ac5d56471
commit 6804dff925

View file

@ -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);
}
}