Jelajahi Sumber

Remove template declaration per copilot suggestion.

Building a project with this template throws "you cannot bind an lvalue to an rvalue reference" error.
Copilot suggests removing the template declaration in the call to fix this.

Signed-off-by: Shauna Gordon <[email protected]>
Shauna Gordon 1 tahun lalu
induk
melakukan
10d226739d

+ 4 - 4
Templates/Multiplayer/Template/Gem/Code/Source/Spawners/RoundRobinSpawner.cpp

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
- * 
+ *
  * SPDX-License-Identifier: Apache-2.0 OR MIT
  *
  */
@@ -29,7 +29,7 @@ namespace ${SanitizedCppName}
             AZLOG_WARN("No active NetworkPlayerSpawnerComponents were found on player spawn request.")
             return AZStd::make_pair<Multiplayer::PrefabEntityId, AZ::Transform>(Multiplayer::PrefabEntityId(), AZ::Transform::CreateIdentity());
         }
-        
+
         if (m_spawnIndex >= m_spawners.size())
         {
             AZLOG_WARN("RoundRobinSpawner has an out-of-bounds spawner index. Resetting spawn index to 0.")
@@ -41,7 +41,7 @@ namespace ${SanitizedCppName}
         // NetworkEntityManager currently operates against/validates AssetId or Path, opt for Path via Hint
         Multiplayer::PrefabEntityId prefabEntityId(AZ::Name(spawner->GetSpawnableAsset().GetHint().c_str()));
 
-        return AZStd::make_pair<Multiplayer::PrefabEntityId, AZ::Transform>(
+        return AZStd::make_pair(
             prefabEntityId, spawner->GetEntity()->GetTransform()->GetWorldTM());
     }
 
@@ -56,7 +56,7 @@ namespace ${SanitizedCppName}
             {
                 m_spawnIndex = 0;
             }
-            
+
             return true;
         }