orxConfig_GetListString limited to 255 item lists?

edited August 2012 in Help request
Hi Iarwain,

I'm configuring a list of 400 tiles list (20 x 20 tiles) as:
[MapLevel]
Map = F #F  #F  #F  #F  #F  #F  #F  #F  #F  #F  #F  #F  #T  #T  #T  #T  #ITR .... etc... etc...

I am looping through the array creating the tiles objects on screen but I get a stack trace when the index is 255, because of the assert in orxConfig.c:
orxASSERT(_s32ListIndex < 0xFF);

The API defines the function signature as:
orxConfig_GetListString 	( 	const orxSTRING  	_zKey,
		orxS32  	_s32ListIndex 
	)

Am I correct I should be able to pass up to a 32 bit number? This is using SVN from about 3 weeks ago.

Comments

  • edited August 2012
    Apparently I didn't update the asserts when I pushed the list size from 255 to 65535. Made a quick update last night that should fix it. Try to sync the svn and let me know if I forgot anything.
  • edited August 2012
    Confirmed all working! I updated my SVN, recompiled and dropped the new libraries into my project. The orxConfig_GetListString() is reading beyond 255 now.

    Thanks so much for fixing.
Sign In or Register to comment.