summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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) {