Skip to content

Commit

Permalink
Fix a memory leak in scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
evil-at-wow committed Oct 14, 2023
1 parent 5cf770e commit 8d7a5af
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ struct npc_shattered_hand_centurion : public CombatAI
void AddSC_shattered_halls()
{
Script* pNewScript = new Script;
pNewScript = new Script;
pNewScript->Name = "npc_shattered_hand_centurion";
pNewScript->GetAI = &GetNewAIInstance<npc_shattered_hand_centurion>;
pNewScript->RegisterSelf();
Expand Down

0 comments on commit 8d7a5af

Please sign in to comment.