【战斗】v1.0.74 1、修复RoleManager table.removebyvalue方法空报错

gaoxin 2021-12-25 07:57:10 +08:00
parent d14c0fe589
commit f22aa9fe80
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ local min = math.min
--local BattleEventName = BattleEventName
BattleUtil.Passivity = require("Modules/Battle/Logic/Base/Passivity")
local function table_removebyvalue(array, value, removeall)
function table_removebyvalue(array, value, removeall)
local c, i, max = 0, 1, #array
while i <= max do
if array[i] == value then

View File

@ -135,7 +135,7 @@ function this.CheckRelive()
local removePos = {}
for pos, role in pairs(_ReliveRoleList) do
if role:Relive() then
table.removebyvalue(RealDeadList,role)
table_removebyvalue(RealDeadList,role)
isReliveFrame = true
table.insert(removePos, pos)
end