mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkBehaviour.InvokeSyncEventDelegate: added missing IsInstanceOfType check that the other invokes have
This commit is contained in:
parent
c52e36af57
commit
0924e2f144
@ -315,7 +315,8 @@ internal bool InvokeSyncEventDelegate(int cmdHash, NetworkReader reader)
|
||||
{
|
||||
Invoker invoker;
|
||||
if (s_CmdHandlerDelegates.TryGetValue(cmdHash, out invoker) &&
|
||||
invoker.invokeType == UNetInvokeType.SyncEvent)
|
||||
invoker.invokeType == UNetInvokeType.SyncEvent &&
|
||||
invoker.invokeClass.IsInstanceOfType(this))
|
||||
{
|
||||
invoker.invokeFunction(this, reader);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user