From 989a1f7bcc2bb7c74cfed974972e3bd248b58f6a Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Thu, 16 Oct 2014 12:09:45 -0700 Subject: Error instead of hang when parsing script with double semi --- src/map/script-parse.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/map/script-parse.cpp b/src/map/script-parse.cpp index 10d1582..e2cb4c6 100644 --- a/src/map/script-parse.cpp +++ b/src/map/script-parse.cpp @@ -592,7 +592,11 @@ ZString::iterator ScriptBuffer::parse_line(ZString::iterator p, bool *can_step) p = skip_space(p); if (*p == ';') + { + disp_error_message("Double semi-colon"_s, p); + ++p; return p; + } parse_cmd_if = 0; // warn_cmd_no_commaのために必要 -- cgit v1.2.3-70-g09d2