From e554c1c9c4b807ee2923b433fd03227da2f79b43 Mon Sep 17 00:00:00 2001 From: gumi Date: Wed, 29 Aug 2018 23:42:10 -0400 Subject: fix set_reg no longer being able to handle C_PARAM closes #2200 --- src/map/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index e6c4ef1d1..65ffc1a6d 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -3480,7 +3480,7 @@ static int set_reg(struct script_state *st, struct map_session_data *sd, int64 n nullpo_ret(name); prefix = name[0]; - if (script->str_data[script_getvarid(num)].type != C_NAME) { + if (script->str_data[script_getvarid(num)].type != C_NAME && script->str_data[script_getvarid(num)].type != C_PARAM) { ShowError("script:set_reg: not a variable! '%s'\n", name); // to avoid this don't do script->add_str(") without setting its type. -- cgit v1.2.3-60-g2f50