Fix crash on access to now local statistics variable

This commit is contained in:
sapier 2014-07-09 23:08:17 +02:00
parent 5ba79921cf
commit a60bd54ad0

View File

@ -30,7 +30,9 @@ mobf_job_queue = {}
-------------------------------------------------------------------------------
function mobf_job_queue.add_job(job)
table.insert(mobf_job_queue.queue, job)
statistics.data.queue.max = MAX(statistics.data.queue.max,#mobf_job_queue.queue)
mobf_get_statistics().data.queue.max =
MAX(mobf_get_statistics().data.queue.max,#mobf_job_queue.queue)
end
-------------------------------------------------------------------------------