From 9832e82b0e8dbda38bf4feb18e48cf5335e213ee Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 13 Jan 2014 19:32:19 +0100 Subject: Fixed getarraysize returning incorrect values for character variables - Committing on Ind's behalf. Special thanks to ossi0110. Signed-off-by: Haru --- src/map/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/script.c') 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) ) { -- cgit v1.2.3-70-g09d2