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() )
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;
}