Moved local variable to a smaller scope

Signed-off-by: pereslav <pereslav@amazon.com>
This commit is contained in:
pereslav
2021-09-24 17:12:58 +01:00
parent 44c8ae2872
commit bf1ebea202
@@ -45,8 +45,7 @@ namespace Multiplayer
{
AZ::Transform rootEntityTransform = AZ::Transform::CreateIdentity();
auto* transformInterface = GetEntity()->GetTransform();
if(transformInterface)
if(auto* transformInterface = GetEntity()->GetTransform())
{
rootEntityTransform = transformInterface->GetWorldTM();
}