Skip to content
Permalink
Browse files

Fix profiler crash by builtin since eea1fda (#8239)

Default to '??' (common Minetest notation) for unknown mods.
  • Loading branch information...
pauloue authored and SmallJoker committed Feb 16, 2019
1 parent 568540f commit 291b2446f19209be20c4b7fb7587da44330429fd
Showing with 1 addition and 1 deletion.
  1. +1 −1 builtin/profiler/instrumentation.lua
@@ -88,7 +88,7 @@ local function instrument(def)
if not def or not def.func then
return
end
def.mod = def.mod or get_current_modname()
def.mod = def.mod or get_current_modname() or "??"
local modname = def.mod
local instrument_name = generate_name(def)
local func = def.func

0 comments on commit 291b244

Please sign in to comment.
You can’t perform that action at this time.