From a7ab24d8ab1400a736304ff6033bfc6b2f523715 Mon Sep 17 00:00:00 2001 From: kiritow <1362050620@qq.com> Date: Sun, 21 May 2017 21:08:53 +0800 Subject: [PATCH] Fix bug in class Timer (VoidCallable Constructor) --- MiniEngine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MiniEngine.h b/MiniEngine.h index a99ce84..324d921 100644 --- a/MiniEngine.h +++ b/MiniEngine.h @@ -514,7 +514,7 @@ namespace MiniEngine template Timer(Uint32 interval,VoidCallable&& vcallable,Args&&... args) : Timer() { - auto realCall=[&](Uint32 ims)->Uint32{vcallable(ims,args...);return interval;}; + auto realCall=[&](Uint32 ims)->Uint32{vcallable(ims,args...);return ims;}; auto pfunc=new std::function(realCall); _real_timer_call(_global_timer_executor,interval,pfunc); }