diff options
Diffstat (limited to 'builtin/game')
-rw-r--r-- | builtin/game/mod_profiling.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/game/mod_profiling.lua b/builtin/game/mod_profiling.lua index 0fe99e725..df2d10221 100644 --- a/builtin/game/mod_profiling.lua +++ b/builtin/game/mod_profiling.lua @@ -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 |