Skip to content

Commit 54ee03b

Browse files
committed
Fixed turnary return value
1 parent cf0aba0 commit 54ee03b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MLAPI/MonoBehaviours/Core/NetworkedBehaviour.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ internal static void HandleNetworkedVarDeltas(List<INetworkedVar> networkedVarLi
382382
//A dummy read COULD be added to the interface for this situation, but it's just being too nice.
383383
//This is after all a developer fault. A critical error should be fine.
384384
// - TwoTen
385-
if (LogHelper.CurrentLogLevel <= LogLevel.Error) LogHelper.LogError("Client wrote to NetworkedVar without permission. No more variables can be read. This is critical. " + logInstance != null ? ("NetworkId: " + logInstance.networkId + " BehaviourIndex: " + logInstance.networkedObject.GetOrderIndex(logInstance) + " VariableIndex: " + i) : string.Empty);
385+
if (LogHelper.CurrentLogLevel <= LogLevel.Error) LogHelper.LogError("Client wrote to NetworkedVar without permission. No more variables can be read. This is critical. " + (logInstance != null ? ("NetworkId: " + logInstance.networkId + " BehaviourIndex: " + logInstance.networkedObject.GetOrderIndex(logInstance) + " VariableIndex: " + i) : string.Empty));
386386
return;
387387
}
388388

@@ -409,7 +409,7 @@ internal static void HandleNetworkedVarUpdate(List<INetworkedVar> networkedVarLi
409409
//A dummy read COULD be added to the interface for this situation, but it's just being too nice.
410410
//This is after all a developer fault. A critical error should be fine.
411411
// - TwoTen
412-
if (LogHelper.CurrentLogLevel <= LogLevel.Error) LogHelper.LogError("Client wrote to NetworkedVar without permission. No more variables can be read. This is critical. " + logInstance != null ? ("NetworkId: " + logInstance.networkId + " BehaviourIndex: " + logInstance.networkedObject.GetOrderIndex(logInstance) + " VariableIndex: " + i) : string.Empty);
412+
if (LogHelper.CurrentLogLevel <= LogLevel.Error) LogHelper.LogError("Client wrote to NetworkedVar without permission. No more variables can be read. This is critical. " + (logInstance != null ? ("NetworkId: " + logInstance.networkId + " BehaviourIndex: " + logInstance.networkedObject.GetOrderIndex(logInstance) + " VariableIndex: " + i) : string.Empty));
413413
return;
414414
}
415415

0 commit comments

Comments
 (0)