diff options
author | gumi <git@gumi.ca> | 2018-07-30 12:48:21 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-07-30 13:01:06 -0400 |
commit | a28504fce050c8967b092759f1374d22c7a7ec0e (patch) | |
tree | d99420df893caa160e6334f815a40bb72b3a0b31 /src/map | |
parent | 6696ad9eed9b95bf8abe135801d1fad03aeb40e6 (diff) | |
download | hercules-a28504fce050c8967b092759f1374d22c7a7ec0e.tar.gz hercules-a28504fce050c8967b092759f1374d22c7a7ec0e.tar.bz2 hercules-a28504fce050c8967b092759f1374d22c7a7ec0e.tar.xz hercules-a28504fce050c8967b092759f1374d22c7a7ec0e.zip |
Revert "temporary fix for getd (#2163)"
This reverts commit 6696ad9eed9b95bf8abe135801d1fad03aeb40e6.
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 846075c0e..6c09bc6c9 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 || script->str_data[id].type == C_NOP) { + if (id < 0) { id = script->add_str(varname); script->str_data[id].type = C_NAME; } else if (script->str_data[id].type != C_NAME) { |