aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2017-10-14 18:28:56 +0100
committerrubenwardy <rw@rubenwardy.com>2017-10-14 18:28:56 +0100
commit9f3a5859378ac01648ca0caf01b04ad57c871baa (patch)
treea1a122f4e68450cb2b2b05ebfeb2f6f4dbe545b4 /builtin
parentb97b9a550fe6c0028daf87fdff262d25d91e1c53 (diff)
downloadminetest-9f3a5859378ac01648ca0caf01b04ad57c871baa.tar.gz
minetest-9f3a5859378ac01648ca0caf01b04ad57c871baa.tar.bz2
minetest-9f3a5859378ac01648ca0caf01b04ad57c871baa.zip
Profiler: Fix var args not being passed to callback register function
Fixes #6517
Diffstat (limited to 'builtin')
-rw-r--r--builtin/profiler/instrumentation.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/profiler/instrumentation.lua b/builtin/profiler/instrumentation.lua
index be3a460e5..7c21859d3 100644
--- a/builtin/profiler/instrumentation.lua
+++ b/builtin/profiler/instrumentation.lua
@@ -133,7 +133,7 @@ local function instrument_register(func, func_name)
return func(instrument {
func = callback,
func_name = register_name
- }), ...
+ }, ...)
end
end