mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-24 13:23:50 -04:00
fix(event): use the proper constructor here
This commit is contained in:
parent
7ac5d56471
commit
6804dff925
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue