Спамит в лог на GetTableSize
Error while running the chunk
[string "Mods/Addons/MyBuffTracker_(fix 13.0.00.24)/Ma..."]:472: attempt to call global 'GetTableSize' (a nil value)
func: GetTableSize, global, line: -1, defined: C, line: -1, [C]
func: ?, ?, line: 472, defined: Lua, line: 469, [string "Mods/Addons/MyBuffTracker_(fix 13.0.00.24)/Ma..."]
func: __index, metamethod, line: -1, defined: C, line: -1, [C]
func: ?, ?, line: 456, defined: Lua, line: 453, [string "Mods/Addons/MyBuffTracker_(fix 13.0.00.24)/Ma..."]
Attempt to read from undeclared global variable: GetTableSize
Заменил код так (без GetTableSize)
-- Функция fix 13.0.00.24
function UnitSpawnedNew( params )
-- for fix 05.02.2022
for i, obj in ipairs(params.spawned) do
if obj then
OnEventUnitSpawned( {unitId = obj} )
end
end
end
---------------------------------------------------------------------------------------------------
-- Функция fix 13.0.00.24
function UnitDespawnedNew( params )
-- for fix 05.02.2022
for i, obj in ipairs(params.despawned) do
if obj then
OnEventUnitDespawned( {unitId =obj} )
end
end
end