summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-01-13 19:32:19 +0100
committerHaru <haru@dotalux.com>2014-01-13 19:33:35 +0100
commit9832e82b0e8dbda38bf4feb18e48cf5335e213ee (patch)
tree73a667cd6dd2c89873bfbf47eb346c2d3c5a0cb8
parentca68ff4996200ab7fa8905374175ac3fa93bf46e (diff)
downloadhercules-9832e82b0e8dbda38bf4feb18e48cf5335e213ee.tar.gz
hercules-9832e82b0e8dbda38bf4feb18e48cf5335e213ee.tar.bz2
hercules-9832e82b0e8dbda38bf4feb18e48cf5335e213ee.tar.xz
hercules-9832e82b0e8dbda38bf4feb18e48cf5335e213ee.zip
Fixed getarraysize returning incorrect values for character variables
- Committing on Ind's behalf. Special thanks to ossi0110. Signed-off-by: Haru <haru@dotalux.com>
-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) ) {