From 3f1e5e1c235d7ba4afa1908313901360c7e7658b Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 14 Jun 2007 14:12:03 +0000 Subject: This was so wrong... --- lib/LuaTask.cc | 8 ++++---- 1 file 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 #include @@ -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; -- cgit v1.2.3