summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-08-29 23:42:10 -0400
committergumi <git@gumi.ca>2018-08-29 23:43:49 -0400
commite554c1c9c4b807ee2923b433fd03227da2f79b43 (patch)
treefb6ff195176a4defed58b54a620db114c677b162
parent60382483cc141a8f58859cb972db78c0aaaa08c4 (diff)
downloadhercules-e554c1c9c4b807ee2923b433fd03227da2f79b43.tar.gz
hercules-e554c1c9c4b807ee2923b433fd03227da2f79b43.tar.bz2
hercules-e554c1c9c4b807ee2923b433fd03227da2f79b43.tar.xz
hercules-e554c1c9c4b807ee2923b433fd03227da2f79b43.zip
fix set_reg no longer being able to handle C_PARAM
closes #2200
-rw-r--r--src/map/script.c2
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.