diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. |