summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/script.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 05b7e6b57..6413b9a60 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -3067,7 +3067,8 @@ void op_2(struct script_state *st, int op)
if (leftref.type != C_NOP)
{
- aFree(left->u.str);
+ if (left->type == C_STR) // don't free C_CONSTSTR
+ aFree(left->u.str);
*left = leftref;
}
}