copy the name
This commit is contained in:
@@ -25,6 +25,8 @@ LuaReference::~LuaReference()
|
|||||||
|
|
||||||
LuaReference::LuaReference( const LuaReference &cpy )
|
LuaReference::LuaReference( const LuaReference &cpy )
|
||||||
{
|
{
|
||||||
|
m_sName = cpy.m_sName;
|
||||||
|
|
||||||
g_Subscribers.Subscribe( this );
|
g_Subscribers.Subscribe( this );
|
||||||
|
|
||||||
if( cpy.m_iReference == LUA_NOREF )
|
if( cpy.m_iReference == LUA_NOREF )
|
||||||
@@ -46,6 +48,8 @@ LuaReference &LuaReference::operator=( const LuaReference &cpy )
|
|||||||
|
|
||||||
Unregister();
|
Unregister();
|
||||||
|
|
||||||
|
m_sName = cpy.m_sName;
|
||||||
|
|
||||||
if( cpy.m_iReference == LUA_NOREF )
|
if( cpy.m_iReference == LUA_NOREF )
|
||||||
{
|
{
|
||||||
m_iReference = LUA_NOREF;
|
m_iReference = LUA_NOREF;
|
||||||
|
|||||||
Reference in New Issue
Block a user