summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Noble <nnoble@blizzard.com>2014-08-11 11:53:59 -0700
committerNicolas Noble <nnoble@blizzard.com>2014-08-11 11:53:59 -0700
commitae874e92caa10f9dfd74c63827905063a2c5717c (patch)
treecae85416a50297732a2d2d43e3f405d0a81dd77a
parentda30e788fea8391efecc648ae0efc8db665a1a02 (diff)
Bug fixing - how was that even working... ?
-rw-r--r--src/LuaLoad.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/LuaLoad.cc b/src/LuaLoad.cc
index 79453ea..8e634b5 100644
--- a/src/LuaLoad.cc
+++ b/src/LuaLoad.cc
@@ -1,5 +1,6 @@
#include <memory>
+#include "LuaHandle.h"
#include "LuaLoad.h"
#include "LuaTask.h"
#include "Buffer.h"
@@ -9,7 +10,7 @@ using namespace Balau;
namespace {
-class LuaLoad { };
+struct LuaLoad { void cleanup() { } };
enum LuaLoad_functions_t {
LUALOAD
@@ -29,7 +30,7 @@ struct sLua_LuaLoad {
WAITTASK,
} status;
if (L.isobject()) {
- h = L.recast<Handle>();
+ h = L.recast<LuaIO>()->getIO();
if (h.isA<Buffer>()) {
L.load(h);
return 0;