Issue information

Issue ID
#2047
Status
Fixed
Severity
Low
Started
Hercules Elf Bot
Aug 12, 2008 11:08
Last Post
Hercules Elf Bot
Aug 12, 2008 11:08
Confirmation
N/A

Hercules Elf Bot - Aug 12, 2008 11:08

Originally posted by [b]Inkfish[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=2047

Doc says:
CODE
    // This will make array element 0 change to 245
    cleararray @array[0],245,1;

Actually, this wil set both @array[0] and @array[1] to 245.

Because the script doesnot stop before 'start' get bigger than 'end', while it SHOULD stop as soon as 'start' get equal to 'end'.
CODE
    for(; start <= end; ++start )//we shall omit the '='?
        set_reg(st, sd, reference_uid(id, start), name, v, script_getref(st,2));