summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-02-06 01:02:57 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-02-06 01:02:57 +0000
commit97e99cabe32457b9df261ea64fa835c2f8850d2e (patch)
treee7ccff176788446a96cdfdb3e7827e070d320340 /src
parent138dc7f32a3c64cc87bf83d4ac9d1bc83036e49b (diff)
downloadhercules-97e99cabe32457b9df261ea64fa835c2f8850d2e.tar.gz
hercules-97e99cabe32457b9df261ea64fa835c2f8850d2e.tar.bz2
hercules-97e99cabe32457b9df261ea64fa835c2f8850d2e.tar.xz
hercules-97e99cabe32457b9df261ea64fa835c2f8850d2e.zip
* Fixed closing 'switch' curly not causing script EOL processing to trigger, leading to the script line after the switch being handled as belonging to the curly-less statement block (bugreport:3273, since r3422).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14694 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/script.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 5c87336c3..9d36802a2 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -1253,7 +1253,9 @@ const char* parse_curly_close(const char* p)
set_label(l,script_pos, p);
linkdb_final(&syntax.curly[pos].case_label); // free the list of case label
syntax.curly_count--;
- return p+1;
+ // if, for , while ‚̕‚¶”»’è
+ p = parse_syntax_close(p + 1);
+ return p;
} else {
disp_error_message("parse_curly_close: unexpected string",p);
return p + 1;