WorldFlightMap

WorldFlightMap

353k Downloads

11.0 LinePoolMixin Error

Talyrius opened this issue ยท 3 comments

commented
commented

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.

commented

@greerga Could you explain where to replace this? I tried to fix it in WorldFlightMap/LinePool.lua but that didn't fix the issue.

commented

@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.