Permalink
Browse files

fix set_reg no longer being able to handle C_PARAM

closes #2200
  • Loading branch information...
Helianthella committed Aug 30, 2018
1 parent 6038248 commit e554c1c9c4b807ee2923b433fd03227da2f79b43
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/map/script.c
View
@@ -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.

0 comments on commit e554c1c

Please sign in to comment.