Unable to convert from 'TList'.....

BlitzMax Forums/BlitzMax Programming/Unable to convert from 'TList'.....

GfK(Posted 2011) [#1]
Hello. I'm revisiting some old code and I'm getting a weirdy error at compile-time that I should not be getting.

Compile Error: Unable to convert from 'TList' to 'rigz.timelinefx.tlEffect'


rigz.timelinefx.tlEffect is a TList of tlEffect objects.

My code is this:
Local t:tlEffect
For t = EachIn Self.particleManager.effects
    t.softkill()
Next


I've been using Monkey for ages now, so either I've forgotten something, Blitzmax has had an update that contains changes I don't know about, or I'm just having an epic brainfart. If I was getting that at runtime I could sort of understand it. But, given that the compiler does not know what's going to be in a TList at this point, how can I possibly be getting this error at compile time??


GfK(Posted 2011) [#2]
Never mind... seems that at some point last October, TimelineFX changed so that the effects TList is now an array of TLists.