Skip to content

Commit

Permalink
fix set_reg no longer being able to handle C_PARAM
Browse files Browse the repository at this point in the history
closes #2200
  • Loading branch information
Helianthella committed Aug 30, 2018
1 parent 6038248 commit e554c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/script.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e554c1c

Please sign in to comment.