Warning! This is the old Hercules bugtracker archive, and may not reflect the current state of Hercules. The current bugtracker is on GitHub Issues.
Issue information
Issue ID
#8025
Status
Fixed
Severity
None
Started
AnnieRuru
Feb 15, 2014 22:57
Last Post
Ind
Feb 19, 2014 18:17
Confirmation
Yes (2)
No (0)
AnnieRuru - Feb 15, 2014 22:57
original topic
[url="http://herc.ws/board/topic/4473-some-scripts-will-crash-the-maps-in-svn-13836/"]http://herc.ws/board/topic/4473-some-scripts-will-crash-the-maps-in-svn-13836/[/url][code=auto:0]prontera,156,183,4 script kvjkjvhksdf 100,{
setarray .@abc, 5,6,7,8;
callfunc "asdf", .@abc;
end;
}
function script asdf {
for ( .@i = 0; .@i < getarraysize( getarg(0) ); .@i++ ) // this one will crash the server
// for ( .@i = 0; .@i < 4; .@i++ ) // this one OK
dispbottom getelementofarray( getarg(0), .@i ) +"";
return;
}[/code]server crash
This post has been edited by
AnnieRuru
on Feb 15, 2014 23:17
Ind - Feb 19, 2014 2:32
Just an update; Haru has pinpointed the cause to another issue so both of them will be getting fixed at once
Ind - Feb 19, 2014 18:17
I've done a temp fix so that it doesnt remain broken until the full, better, fix [url="https://github.com/HerculesWS/Hercules/commit/37c20c832728b22ba23c3a3dfbe961fdbf9a3fb9"]https://github.com/HerculesWS/Hercules/commit/37c20c832728b22ba23c3a3dfbe961fdbf9a3fb9[/url]