From 5ec5b398acfc9c3e62c7811b6197b590d095520c Mon Sep 17 00:00:00 2001 From: SecretsOTheP Date: Sun, 9 Feb 2014 12:04:45 -0500 Subject: [PATCH] tasks crash fix --- changelog.txt | 1 + zone/tasks.cpp | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 8c504a5b7..a17b7ea64 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50) ------------------------------------------------------- == 02/09/2014 == Sorvani: Added new spawn condition onchange action: DoRepopIfReady. Choosing this will not repop mobs when the spawn condition is enabled if they have an existing respawn timer. Additionally, this condition will not even attempt repop when the condition is is changed to disabled. Will be in use on PEQ for: Cragbeast Queen in Natimbi. +Secrets: Fixed a weird crash issue with deletion of pointers if task loading fails. == 02/2/2014 == Kayen: Revised how spell/dot damage is calculated to properly incorporated all current focus effects/bonuses. diff --git a/zone/tasks.cpp b/zone/tasks.cpp index eb1d06ace..44d4e1e69 100644 --- a/zone/tasks.cpp +++ b/zone/tasks.cpp @@ -585,7 +585,6 @@ bool TaskManager::LoadClientState(Client *c, ClientTaskState *state) { else { LogFile->write(EQEMuLog::Error, ERR_MYSQLERROR1, errbuf); safe_delete_array(query); - safe_delete(state); return false; } @@ -659,7 +658,6 @@ bool TaskManager::LoadClientState(Client *c, ClientTaskState *state) { else { LogFile->write(EQEMuLog::Error, ERR_MYSQLERROR2, errbuf); safe_delete_array(query); - safe_delete(state); return false; } @@ -738,7 +736,6 @@ bool TaskManager::LoadClientState(Client *c, ClientTaskState *state) { else { LogFile->write(EQEMuLog::Error, ERR_MYSQLERROR3, errbuf); safe_delete_array(query); - safe_delete(state); return false; } }