Moved local variable to a smaller scope
Signed-off-by: pereslav <pereslav@amazon.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user