Change object list to array for CustomEvent

This commit is contained in:
Sardelka
2022-07-05 10:52:22 +08:00
parent 8e0620bedb
commit cf7641cee0
7 changed files with 41 additions and 123 deletions

View File

@ -168,7 +168,7 @@ namespace RageCoop.Client.Scripting
TypeCode returnType=(TypeCode)ty;
i = returnType==TypeCode.Empty ? 1 : 2;
var hash = (Hash)e.Args[i++];
for(; i<e.Args.Count;i++)
for(; i<e.Args.Length;i++)
{
arguments.Add(GetInputArgument(e.Args[i]));
}