mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 14:23:44 -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>
|
template <typename H, typename... Args>
|
||||||
void ExecuteHooks(Args&&... args) {
|
void ExecuteHooks(Args&&... args) {
|
||||||
for (auto fn : RegisteredHooks<H>::functions) {
|
for (auto& fn : RegisteredHooks<H>::functions) {
|
||||||
fn(std::forward<Args>(args)...);
|
fn(std::forward<Args>(args)...);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue