diff options
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index 8ac657f93..3e11a510e 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -3217,6 +3217,8 @@ void script_free_vars(struct DBMap* var_storage) { void script_free_code(struct script_code* code) { + nullpo_retv(code); + if( code->instances ) script->stop_instances(code); else { |