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 09fab8131..75469a345 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -2601,7 +2601,7 @@ void script_array_ensure_zero(struct script_state *st, struct map_session_data *
struct script_array *sa = NULL;
bool insert = false;
- if( sd ) /* when sd comes, st isn't available */
+ if( sd && !st ) /* when sd comes, st isn't available */
insert = true;
else {
if( is_string_variable(name) ) {