We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7db5736 commit 000ff96Copy full SHA for 000ff96
src/managed/Internal_API/EventsListener.cs
@@ -27,15 +27,8 @@ private static unsafe EventResult CallEventHandlers(ref List<API.Scripting.Event
27
if (functionParams.Length == j + 1) break;
28
Type t = functionParams[j + 1].ParameterType;
29
byte* arg = (byte*)args[j];
30
- if(Cacher.ConsiderTypeAPointer(ref t))
31
- {
32
- byte* marg = (byte*)&arg;
33
- a.Add(CallContext.ReadValue(ref t, ref marg));
34
- }
35
- else
36
37
- a.Add(CallContext.ReadValue(ref t, ref arg));
38
+ byte* marg = (byte*)&arg;
+ a.Add(CallContext.ReadValue(ref t, ref marg));
39
}
40
returnValue = eventInfo.Callback(eventInfo.TargetInstance, a.ToArray()) ?? EventResult.Continue;
41
0 commit comments