|
asm Wanderer
Joined: 19 Jul 2004 Posts: 68
|
Posted: Fri Jan 04, 2008 7:00 am
%replaceitem() buggy? |
Noticed something funny going on with a somewhat simple script I moved from Z to C. After playing with the debugger I think, AFAICT, it might be that %replaceitem() concats instead of replaces if the target is the last word in a stringlist...anyone else had a similar problem, perchance? (On 2.18.)
|
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Fri Jan 04, 2008 7:47 am |
Does the same for me.
|
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
|
frasten Beginner
Joined: 06 Jan 2006 Posts: 24
|
Posted: Sun Jan 06, 2008 5:12 pm |
The same here. For example:
#echo %replaceitem( 1, 2, "0|0")
prints 0|0|1, and not 0|1, as it should. |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sun Jan 06, 2008 6:01 pm |
Confirmed on my end.
#var stuff {1|2|3}
#echo %replaceitem(3, 1, @stuff)
3|2|3
#echo %replaceitem(1, 2, @stuff)
1|1|3
#echo %replaceitem(1, 3, @stuff)
1|2|3|1
Charneus |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Jan 07, 2008 10:49 pm |
Yep, it's on the bug list.
|
|
|
|
|
|