summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-18 08:04:53 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-18 08:04:53 +0000
commite8d7a95f9416c67242db5e06fd1743c8f28b3b08 (patch)
treea31a379d1f2e3af7eede623407b4cc0a25b43383 /src/map/script.c
parent5f6a6a2557a90573a504b541a3234f0dc566bf6a (diff)
downloadhercules-e8d7a95f9416c67242db5e06fd1743c8f28b3b08.tar.gz
hercules-e8d7a95f9416c67242db5e06fd1743c8f28b3b08.tar.bz2
hercules-e8d7a95f9416c67242db5e06fd1743c8f28b3b08.tar.xz
hercules-e8d7a95f9416c67242db5e06fd1743c8f28b3b08.zip
Some code cleaning...
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11505 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 116973f17..0d2d04650 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -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 );