From 6696ad9eed9b95bf8abe135801d1fad03aeb40e6 Mon Sep 17 00:00:00 2001 From: gumi Date: Mon, 30 Jul 2018 12:44:01 -0400 Subject: temporary fix for getd (#2163) this will be reverted in the next release and a proper fix will be added --- src/map/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3-70-g09d2