summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/LuaTask.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/LuaTask.cc b/lib/LuaTask.cc
index 45d19c1..13a98f9 100644
--- a/lib/LuaTask.cc
+++ b/lib/LuaTask.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: LuaTask.cc,v 1.23 2008-01-21 09:49:46 pixel Exp $ */
+/* $Id: LuaTask.cc,v 1.24 2008-01-21 16:40:04 pixel Exp $ */
#include <LuaTask.h>
#include <LuaHandle.h>
@@ -335,14 +335,14 @@ class DelayedTask : public Task {
int sLua_TaskMan::TaskMan_proceed_statics(Lua * L, int n, int caller) {
String cmd;
- int delay = 0;
+ int delay = 1;
switch (caller) {
case TASKMAN_NB_TASKS:
- return TaskMan::nb_tasks();
+ L->push((lua_Number) TaskMan::nb_tasks());
break;
case TASKMAN_NB_ZOMBIES:
- return TaskMan::nb_zombies();
+ L->push((lua_Number) TaskMan::nb_zombies());
break;
case TASKMAN_DELAYED_TASK:
cmd = L->tostring(1);