summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/LuaTask.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/LuaTask.cc b/lib/LuaTask.cc
index b75a5e3..3dcabdc 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.11 2007-05-30 19:03:22 pixel Exp $ */
+/* $Id: LuaTask.cc,v 1.12 2007-06-14 14:12:03 pixel Exp $ */
#include <LuaTask.h>
#include <LuaHandle.h>
@@ -59,15 +59,15 @@ LuaTask::~LuaTask() {
}
LuaTask * LuaTask::gettop() {
- if (!hfind(h, (Uint8 *) L, sizeof(L))) {
- hadd(h, (Uint8 *) L, sizeof(L), 0);
+ if (!hfind(h, (Uint8 *) &L, sizeof(L))) {
+ hadd(h, (Uint8 *) &L, sizeof(L), 0);
}
return (LuaTask *) hstuff(h);
}
void LuaTask::settop(LuaTask * v) {
- if (!hfind(h, (Uint8 *) L, sizeof(L)))
+ if (!hfind(h, (Uint8 *) &L, sizeof(L)))
return;
if (v) {
hstuff(h) = v;