Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonSlayer62 committed Apr 16, 2024
1 parent 7d947cb commit 8499cbf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 4 additions & 0 deletions source/cBaseObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2550,6 +2550,10 @@ void CBaseObject::CopyData( CBaseObject *target )
target->SetKills( kills );
target->SetWipeable( IsWipeable() );
target->SetDamageable( IsDamageable() );

// Don't forget to copy the tags
target->tags = GetTagMap();
target->tempTags = GetTempTagMap();
}

Point3_st CBaseObject::GetOldLocation( void )
Expand Down
4 changes: 0 additions & 4 deletions source/cChar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2491,10 +2491,6 @@ void CChar::CopyData( CChar *target )

// Add any script triggers present on object to the new object
target->scriptTriggers = GetScriptTriggers();

// Don't forget to copy the tags
target->tags = GetTagMap();
target->tempTags = GetTempTagMap();
}

//o------------------------------------------------------------------------------------------------o
Expand Down
4 changes: 0 additions & 4 deletions source/cItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1670,10 +1670,6 @@ auto CItem::CopyData( CItem *target ) -> void

// Add any script triggers present on object to the new object
target->scriptTriggers = GetScriptTriggers();

// Don't forget to copy the tags
target->tags = GetTagMap();
target->tempTags = GetTempTagMap();
}

//o------------------------------------------------------------------------------------------------o
Expand Down

0 comments on commit 8499cbf

Please sign in to comment.