summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 2bee93f63..ee1100ac8 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -1755,6 +1755,10 @@ unsigned char* parse_syntax(unsigned char *p) {
// 関数名のラベルを付ける
*p = 0;
l=add_str(func_name);
+ if(str_data[l].type == C_PARAM) {
+ disp_error_message("invalid label name ",p);
+ exit(1);
+ }
if(str_data[l].type == C_NOP) {
str_data[l].type = C_USERFUNC;
}