diff options
author | gumi <git@gumi.ca> | 2018-07-30 12:44:01 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-07-30 12:44:05 -0400 |
commit | 6696ad9eed9b95bf8abe135801d1fad03aeb40e6 (patch) | |
tree | deffaf5e560222c1489135edd880aa38ec9c27ce /src | |
parent | f3b156edbdf8a09afa95c65085e4e32df3884e07 (diff) | |
download | hercules-6696ad9eed9b95bf8abe135801d1fad03aeb40e6.tar.gz hercules-6696ad9eed9b95bf8abe135801d1fad03aeb40e6.tar.bz2 hercules-6696ad9eed9b95bf8abe135801d1fad03aeb40e6.tar.xz hercules-6696ad9eed9b95bf8abe135801d1fad03aeb40e6.zip |
temporary fix for getd (#2163)v2018.07.29+1
this will be reverted in the next release and a proper fix will be added
Diffstat (limited to 'src')
-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 6c09bc6c9..846075c0e 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -17800,7 +17800,7 @@ static BUILDIN(getd) id = script->search_str(varname); - if (id < 0) { + if (id < 0 || script->str_data[id].type == C_NOP) { id = script->add_str(varname); script->str_data[id].type = C_NAME; } else if (script->str_data[id].type != C_NAME) { |