【战斗】v1.0.74 1、修复RoleManager table.removebyvalue方法空报错
parent
d14c0fe589
commit
f22aa9fe80
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue