Fix profiler crash by builtin since eea1fda (#8239)

Default to '??' (common Minetest notation) for unknown mods.
This commit is contained in:
Paul Ouellette 2019-02-16 15:06:04 -05:00 committed by Nils Dagsson Moskopp
parent 73a5a06fae
commit 7aa851f622
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 1 additions and 1 deletions

View File

@ -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