diff options
author | chai <chaifix@163.com> | 2018-09-06 19:57:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-09-06 19:57:40 +0800 |
commit | 50084b0b3451328a4dfe6db65c78a225e9c8f288 (patch) | |
tree | 020e5b6c834b792aada4cd23cd2551a6b81c22dc /src/lua/modules/thread/Thread.cpp | |
parent | 7281a70b1e38fc2bdfb2d4b6d8f7daf7ceedbd1a (diff) |
+bitmap
Diffstat (limited to 'src/lua/modules/thread/Thread.cpp')
-rw-r--r-- | src/lua/modules/thread/Thread.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/modules/thread/Thread.cpp b/src/lua/modules/thread/Thread.cpp index 7dfac25..5f458ab 100644 --- a/src/lua/modules/thread/Thread.cpp +++ b/src/lua/modules/thread/Thread.cpp @@ -161,7 +161,8 @@ namespace lua case thread::Thread::Variant::POINTER: Proxy* p = (Proxy*)v.pointer; - Proxy* proxy = (Proxy*)luax_newinstance(L, p->getObjectType(), sizeof(Proxy)); + const char* objType = p->getObjectType(); + Proxy* proxy = (Proxy*)luax_newinstance(L, objType, sizeof(Proxy)); p->reference->retain(); proxy->bind(p->reference); break; |