Use correct message count
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.bak
|
||||
@ -88,7 +88,7 @@ local function ProcessVariables(reqId, ...)
|
||||
end
|
||||
|
||||
if not datacache[reqId] then
|
||||
datacache[reqId] = { count = 1, data = {}}
|
||||
datacache[reqId] = { count = 0, data = {}}
|
||||
end
|
||||
|
||||
for i=1, msg:len(), splitLength do
|
||||
@ -331,7 +331,7 @@ function SendClientRequest(prefix, functionId, ...)
|
||||
local reqId = GenerateReqId()
|
||||
local varTable = ProcessVariables(reqId, ...)
|
||||
|
||||
CMH.SendREQ(functionId, #varTable["data"], reqId, prefix)
|
||||
CMH.SendREQ(functionId, varTable.count, reqId, prefix)
|
||||
end
|
||||
|
||||
--A API END
|
||||
@ -92,7 +92,7 @@ local function ProcessVariables(sender, reqId, ...)
|
||||
datacache[sender:GetGUIDLow()] = datacache[sender:GetGUIDLow()] or {}
|
||||
|
||||
if not datacache[sender:GetGUIDLow()][reqId] then
|
||||
datacache[sender:GetGUIDLow()][reqId] = { count = 1, data = {}}
|
||||
datacache[sender:GetGUIDLow()][reqId] = { count = 0, data = {}}
|
||||
end
|
||||
|
||||
for i=1, msg:len(), splitLength do
|
||||
@ -345,7 +345,7 @@ function Player:SendServerResponse(prefix, functionId, ...)
|
||||
local reqId = GenerateReqId()
|
||||
local varTable = ProcessVariables(self, reqId, ...)
|
||||
|
||||
SMH.SendREQ(self, functionId, #varTable["data"], reqId, prefix)
|
||||
SMH.SendREQ(self, functionId, varTable.count, reqId, prefix)
|
||||
end
|
||||
|
||||
-- API END
|
||||
Reference in New Issue
Block a user