mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-15 04:23:09 -04:00
Core/SAI: Fixed another memory leak
This commit is contained in:
@@ -51,7 +51,15 @@ SmartScript::SmartScript()
|
||||
meOrigGUID = 0;
|
||||
goOrigGUID = 0;
|
||||
mResumeActionList = true;
|
||||
mLastInvoker = NULL;
|
||||
mLastInvoker = 0;
|
||||
}
|
||||
|
||||
SmartScript::~SmartScript()
|
||||
{
|
||||
for (ObjectListMap::iterator itr = mTargetStorage->begin(); itr != mTargetStorage->end(); ++itr)
|
||||
delete itr->second;
|
||||
|
||||
delete mTargetStorage;
|
||||
}
|
||||
|
||||
void SmartScript::OnReset()
|
||||
|
||||
Reference in New Issue
Block a user