Fix copied Actors losing functions stored in their table. (also an optimization:
copies quickly, without dynamically compiling anything)
This commit is contained in:
@@ -174,8 +174,7 @@ LuaClass::LuaClass( const LuaClass &cpy ):
|
|||||||
if( !IsSet() )
|
if( !IsSet() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CString sData = Serialize();
|
DeepCopy();
|
||||||
LoadFromString( sData );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LuaClass &LuaClass::operator=( const LuaClass &cpy )
|
LuaClass &LuaClass::operator=( const LuaClass &cpy )
|
||||||
@@ -185,8 +184,7 @@ LuaClass &LuaClass::operator=( const LuaClass &cpy )
|
|||||||
if( !IsSet() )
|
if( !IsSet() )
|
||||||
return *this;
|
return *this;
|
||||||
|
|
||||||
CString sData = Serialize();
|
DeepCopy();
|
||||||
LoadFromString( sData );
|
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user