getn(arg) -> arg.n

This commit is contained in:
Pinya
2018-07-23 17:58:44 +03:00
parent 83f43bdca1
commit 73c25f894c
+1 -2
View File
@@ -108,8 +108,7 @@ function EventTraceFrame_OnEvent (self, event, ...)
self.framesSinceLast[nextIndex] = 0; self.framesSinceLast[nextIndex] = 0;
self.eventids[nextIndex] = GetCurrentEventID(); self.eventids[nextIndex] = GetCurrentEventID();
local numArgs = getn(arg); for i = 1, arg.n do
for i = 1, numArgs do
if (not self.args[i]) then if (not self.args[i]) then
self.args[i] = {}; self.args[i] = {};
end end