renamed local var

This commit is contained in:
MrGadget 2022-05-11 10:59:10 -04:00
parent c35ddd20db
commit a8202e5d0c

View File

@ -1169,10 +1169,10 @@ public static void PrepareToSpawnSceneObjects()
{
if (spawnableObjects.TryGetValue(identity.sceneId, out NetworkIdentity existingIdentity))
{
string errorMsg = $"NetworkClient: Duplicate sceneId {identity.sceneId} detected on {identity.gameObject.name} and {existingIdentity.gameObject.name}\n" +
string msg = $"NetworkClient: Duplicate sceneId {identity.sceneId} detected on {identity.gameObject.name} and {existingIdentity.gameObject.name}\n" +
$"This can happen if a networked object is persisted in DontDestroyOnLoad through loading / changing to the scene where it originated,\n" +
$"otherwise you may need to open and re-save the {identity.gameObject.scene} to reset scene id's.";
Debug.LogWarning(errorMsg, identity.gameObject);
Debug.LogWarning(msg, identity.gameObject);
}
else
spawnableObjects.Add(identity.sceneId, identity);