Fix copied Actors losing functions stored in their table. (also an optimization:

copies quickly, without dynamically compiling anything)
This commit is contained in:
Glenn Maynard
2005-08-29 06:31:48 +00:00
parent ba0eb8dba2
commit 87fff312c3
+2 -4
View File
@@ -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;
} }