From 28c49d8fb44b47d191db4c995ea7f30c1f7bde6a Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Fri, 11 Feb 2011 18:53:23 +0100 Subject: [PATCH] getThreads now indexes with the names again --- src/modules/thread/sdl/wrap_Thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/thread/sdl/wrap_Thread.cpp b/src/modules/thread/sdl/wrap_Thread.cpp index a820cd572..1dff70346 100644 --- a/src/modules/thread/sdl/wrap_Thread.cpp +++ b/src/modules/thread/sdl/wrap_Thread.cpp @@ -302,12 +302,12 @@ namespace sdl lua_newtable(L); for (unsigned int i = 0; igetName().c_str(), list[i]->getName().length()); luax_newtype(L, "Thread", THREAD_THREAD_T, (void*) list[i]); list[i]->lock(); list[i]->retain(); list[i]->unlock(); - // allow names containing \0 - lua_pushlstring(L, list[i]->getName().c_str(), list[i]->getName().length()); lua_settable(L, -3); } delete[] list;