summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.cpp b/src/map/script.cpp
index b5b9618..fac5ad5 100644
--- a/src/map/script.cpp
+++ b/src/map/script.cpp
@@ -2587,7 +2587,7 @@ static int getarraysize (struct script_state *st, int num, int postfix)
for (; i < 128; i++)
{
struct script_data vd = get_val2 (st, num + (i << 24));
- if (postfix == '$' ? bool(vd.u.str) : bool(vd.u.num))
+ if (postfix == '$' ? bool(*vd.u.str) : bool(vd.u.num))
c = i;
}
return c + 1;