From b6f264f2c2be32746ea262cd004f7e70e2c1bc19 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Fri, 5 Oct 2012 10:31:34 -0700 Subject: Fix getarraysize on string arrays. Python has spoiled me :/ --- src/map/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2