Prechádzať zdrojové kódy

修复装备合成问题

mafei 1 rok pred
rodič
commit
ef113dc890

+ 1 - 1
script/module/hecheng/EquipHechengLogic.lua

@@ -80,7 +80,7 @@ function equipHechengDo(human, id, indexList)
     -- 检查 装备下标是否正确
     -- 检查 装备下标是否正确
     local isExist  = {}
     local isExist  = {}
     for _,idx in pairs(indexList) do 
     for _,idx in pairs(indexList) do 
-        if  isExist then
+        if  isExist[idx] then
             Broadcast.sendErr(human, Util.format(Lang.DRILL_CHOOSE_MY_ERR_INDEX))
             Broadcast.sendErr(human, Util.format(Lang.DRILL_CHOOSE_MY_ERR_INDEX))
             return
             return
         end
         end