mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 06:13:45 -07:00
Use reference instead of copy
This commit is contained in:
parent
ac624d3d38
commit
e01f1a94b4
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ namespace ModInternal {
|
|||
|
||||
template <typename H, typename... Args>
|
||||
void ExecuteHooks(Args&&... args) {
|
||||
for (auto fn : RegisteredHooks<H>::functions) {
|
||||
for (auto& fn : RegisteredHooks<H>::functions) {
|
||||
fn(std::forward<Args>(args)...);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue