summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 0166ca471..b1c4d8d6b 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -2940,6 +2940,7 @@ struct script_state* script_alloc_state(struct script_code* rootscript, int pos,
struct script_state* st;
st = ers_alloc(script->st_ers, struct script_state);
+ memset(st, 0, sizeof(struct script_state));
st->stack = ers_alloc(script->stack_ers, struct script_stack);
st->stack->sp = 0;
st->stack->sp_max = 64;