fix EventTrace argument problem

This commit is contained in:
Pinya
2017-12-16 20:46:54 +03:00
parent 95c9b3c38c
commit aabd0134c4
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -106,12 +106,12 @@ function EventTraceFrame_OnEvent (self, event, ...)
self.framesSinceLast[nextIndex] = 0;
self.eventids[nextIndex] = GetCurrentEventID();
local numArgs = select("#", arg);
local numArgs = select("#", unpack(arg));
for i=1, numArgs do
if (not self.args[i]) then
self.args[i] = {};
end
self.args[i][nextIndex] = select(i, arg);
self.args[i][nextIndex] = arg[i];
end
if (self.eventsToCapture) then