gdl_123 hace 3 meses
padre
commit
1dd71baecf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Assets/Editor/CsvToLua/luaCopyFileCfg.lua

+ 1 - 1
Assets/Editor/CsvToLua/luaCopyFileCfg.lua

@@ -1327,7 +1327,7 @@ function luaCopyFileCfg:GetNextAddlocaizedCfg()
         if value == curCfg.path then
         if value == curCfg.path then
             local adCfg = self.AddlocaizedCfg.addCfg[value]
             local adCfg = self.AddlocaizedCfg.addCfg[value]
             local s,e =string.find(curCfg.fileName,adCfg.ex)
             local s,e =string.find(curCfg.fileName,adCfg.ex)
-            if  s > 0 then
+            if  s~=nil and s > 0 then
                 local key = ""
                 local key = ""
                 local f = string.sub(curCfg.fileName,1,s-1)
                 local f = string.sub(curCfg.fileName,1,s-1)
                 local Language = curCfg.path..'/'..f
                 local Language = curCfg.path..'/'..f