NetworkBehaviour.RegisterDelegate: improve syntax

This commit is contained in:
vis2k 2020-03-07 13:43:00 +01:00
parent ab1211b287
commit 88640c9d89

View File

@ -373,7 +373,9 @@ protected static void RegisterDelegate(Type invokeClass, string cmdName, MirrorI
{
// something already registered this hash
Invoker oldInvoker = cmdHandlerDelegates[cmdHash];
if (oldInvoker.invokeClass == invokeClass && oldInvoker.invokeType == invokerType && oldInvoker.invokeFunction == func)
if (oldInvoker.invokeClass == invokeClass &&
oldInvoker.invokeType == invokerType &&
oldInvoker.invokeFunction == func)
{
// it's all right, it was the same function
return;