Some code cleaning...

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11505 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
ultramage
2007-10-18 08:04:53 +00:00
parent 0bbf505d59
commit d2b9e2498e
12 changed files with 71 additions and 118 deletions

View File

@@ -1936,7 +1936,7 @@ struct script_code* parse_script(const char *src,const char *file,int line,int o
if( setjmp( error_jump ) != 0 ) {
//Restore program state when script has problems. [from jA]
int i;
const int size = sizeof(syntax.curly)/sizeof(syntax.curly[0]);
const int size = ARRAYLENGTH(syntax.curly);
if( error_report )
script_error(src,file,line,error_msg,error_pos);
aFree( error_msg );