Skip to content

Commit 0542ab8

Browse files
committed
copy args for first send in global events
1 parent a6fc4a9 commit 0542ab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loader/include/Geode/loader/Event.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ namespace comm {
954954
if (m_filter.has_value()) {
955955
auto filterCopy = *m_filter;
956956
auto ret = std::apply([&](auto&&... fargs) {
957-
return Event1Type(std::move(fargs)...).send(std::forward<PArgs>(args)...);
957+
return Event1Type(std::move(fargs)...).send(args...);
958958
}, std::move(filterCopy));
959959
if (ret) return true;
960960

0 commit comments

Comments
 (0)