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() )
|
||||
return;
|
||||
|
||||
CString sData = Serialize();
|
||||
LoadFromString( sData );
|
||||
DeepCopy();
|
||||
}
|
||||
|
||||
LuaClass &LuaClass::operator=( const LuaClass &cpy )
|
||||
@@ -185,8 +184,7 @@ LuaClass &LuaClass::operator=( const LuaClass &cpy )
|
||||
if( !IsSet() )
|
||||
return *this;
|
||||
|
||||
CString sData = Serialize();
|
||||
LoadFromString( sData );
|
||||
DeepCopy();
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user