Diff

util/timer.lua @ 5898:bf9aba718c01

util/timer: Re-set params when timer is rescheduled
author daurnimator <quae@daurnimator.com>
date Wed, 06 Nov 2013 12:56:18 -0500
parent 5880:11f14d44438e
child 6481:dbc72cd1332e
line wrap: on
line diff
--- a/util/timer.lua	Thu Oct 31 20:49:03 2013 +0100
+++ b/util/timer.lua	Wed Nov 06 12:56:18 2013 -0500
@@ -105,6 +105,7 @@
 		local success, err = xpcall(_call, _traceback_handler);
 		if success and type(err) == "number" then
 			h:insert(_callback, err + now, _id); -- re-add
+			params[_id] = _param;
 		end
 	end
 	next_time = peek;