Skip to content
Snippets Groups Projects
Commit 3ce6888c authored by sapier's avatar sapier
Browse files

Fix retval of entity.get_staticdata beeing lost while profiling is enabled

parent e09293b4
No related branches found
No related tags found
No related merge requests found
......@@ -309,9 +309,10 @@ local function initialize_profiling()
mod_statistics.entity_callbacks[cbid] = prototype.get_staticdata
new_get_staticdata = function(self)
local starttime = core.get_us_time()
mod_statistics.entity_callbacks[cbid](self)
local retval = mod_statistics.entity_callbacks[cbid](self)
local delta = core.get_us_time() -starttime
mod_statistics.log_time(cbid, modname, delta)
return retval
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment