Merge pull request #6170 from aws-lumberyard-dev/LYN-8770_PrintNetEntityNameIfImproperlyDeleted

Print Entity name if Improperly Deleted
This commit is contained in:
Gene Walters
2021-12-08 07:38:43 -08:00
committed by GitHub
@@ -167,7 +167,10 @@ namespace Multiplayer
void NetBindComponent::Deactivate()
{
AZ_Assert(m_needsToBeStopped == false, "Entity appears to have been improperly deleted. Use MarkForRemoval to correctly clean up a networked entity.");
AZ_Assert(
m_needsToBeStopped == false,
"Entity (%s) appears to have been improperly deleted. Use MarkForRemoval to correctly clean up a networked entity.",
GetEntity() ? GetEntity()->GetName().c_str() : "null");
m_handleLocalServerRpcMessageEventHandle.Disconnect();
if (NetworkRoleHasController(m_netEntityRole))
{