11.0 LinePoolMixin Error
Talyrius opened this issue ยท 3 comments
It appears the ObjectPoolMixin
was removed with patch 11.0 which broke your LinePoolMixin
.
Replace the file with:
local function LinePoolFactory(linePool)
return linePool.parent:CreateLine(nil, linePool.layer, linePool.textureTemplate, linePool.subLayer)
end
function CreateLinePool(parent, layer, subLayer, textureTemplate, resetterFunc)
local linePool = CreateSecureObjectPool(LinePoolFactory)
linePool.parent = parent
linePool.layer = layer
linePool.subLayer = subLayer
linePool.textureTemplate = textureTemplate
return linePool
end
Edit: Securing was just changing "CreateObjectPool" to "CreateSecureObjectPool" fortunately.
@greerga Could you explain where to replace this? I tried to fix it in WorldFlightMap/LinePool.lua but that didn't fix the issue.
@greerga Could you explain where to replace this? I tried to fix it in WorldFlightMap/LinePool.lua but that didn't fix the issue.
Yes, that's the place. I'm not sure there aren't other taint issues in the WorldFlightMap code but it mostly fixed things.