All of the KyleS.

This commit is contained in:
Nicholas Hastings 2015-02-18 22:42:06 -05:00
parent 9ffbac4f4e
commit 70be2941fe

View File

@ -42,10 +42,11 @@ struct CondChangeData_t
int newConds; int newConds;
}; };
void HandleCondChange(void *pData) static void HandleCondChange(void *pData)
{ {
auto *pCondData = reinterpret_cast<CondChangeData_t *>(pData); auto *pCondData = reinterpret_cast<CondChangeData_t *>(pData);
g_CondMgr.ProcessCondChange(pCondData); g_CondMgr.ProcessCondChange(pCondData);
delete pCondData;
} }
void PlayerConditionsMgr::ProcessCondChange(CondChangeData_t *pCondData) void PlayerConditionsMgr::ProcessCondChange(CondChangeData_t *pCondData)
@ -97,8 +98,6 @@ void PlayerConditionsMgr::ProcessCondChange(CondChangeData_t *pCondData)
} }
} }
} }
delete pCondData;
} }
template<PlayerConditionsMgr::CondVar CondVar> template<PlayerConditionsMgr::CondVar CondVar>