diff --git a/client/src/namespaces/EventsNamespace.cpp b/client/src/namespaces/EventsNamespace.cpp index 21469f2c1..ea74dafac 100644 --- a/client/src/namespaces/EventsNamespace.cpp +++ b/client/src/namespaces/EventsNamespace.cpp @@ -71,7 +71,7 @@ static void EmitServerRPC(js::FunctionContext& ctx) alt::MValueArgs args; - for(int i = 0; i < arr.Length; ++i) + for(int i = 0; i < arr.Length(); ++i) { alt::MValue val; if(!arr.Get(i, val)) continue;