summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-04-19 23:00:08 -0300
committerpanikon <panikon@zoho.com>2014-04-19 23:00:08 -0300
commit74b21f5e0db73e6e093fc4126d4f6cb15d701758 (patch)
tree4491b2b5a58e6903a252cbe9aa1e88a0f72c1a87 /src/map/script.c
parent32b33d8408b02ab2d133872de770446c32046fa3 (diff)
downloadhercules-74b21f5e0db73e6e093fc4126d4f6cb15d701758.tar.gz
hercules-74b21f5e0db73e6e093fc4126d4f6cb15d701758.tar.bz2
hercules-74b21f5e0db73e6e093fc4126d4f6cb15d701758.tar.xz
hercules-74b21f5e0db73e6e093fc4126d4f6cb15d701758.zip
Fixed issue: 8146
* http://hercules.ws/board/tracker/issue-8146-reloaditemdb-item-combo-db-crash/
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c2
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 {