249435196@qq.com пре 1 година
родитељ
комит
eda95d6220
2 измењених фајлова са 5 додато и 2 уклоњено
  1. 1 0
      script/module/role/NewLogic.lua
  2. 4 2
      script/module/skin/SkinLogic.lua

+ 1 - 0
script/module/role/NewLogic.lua

@@ -154,6 +154,7 @@ local push = {
     [GC_QUERY_GIFT] = true,
     [GC_WARORDER_INFO] = true,
     [GC_WARORDER_CHANGE] = true,
+    [GC_SKIN_QUERY] = true
 }
 
 local handler = {

+ 4 - 2
script/module/skin/SkinLogic.lua

@@ -283,8 +283,10 @@ function skinQuery(human)
     local cnt = 0
     for id in pairs(SkinExcel) do
         cnt = cnt + 1
-        msgRet.list[cnt].ind = data[id].idx
-        msgRet.list[cnt].isOn = data[id].state
+        if data[id] then 
+            msgRet.list[cnt].ind = data[id].idx
+            msgRet.list[cnt].isOn = data[id].state
+        end
         skinNetGen(human,msgRet.list[cnt].data,id)
         if cnt >= maxLen then
             msgRet.list[0] = maxLen