aboutsummaryrefslogtreecommitdiff
path: root/src/game/ObjectMgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r--src/game/ObjectMgr.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp
index c948ad9d073..227b0f90f28 100644
--- a/src/game/ObjectMgr.cpp
+++ b/src/game/ObjectMgr.cpp
@@ -4124,7 +4124,11 @@ void ObjectMgr::LoadGossipText()
pGText->Options[i].Emotes[2]._Emote = fields[cic++].GetUInt32();
}
- if ( !pGText->Text_ID ) continue;
+ if ( !pGText->Text_ID ){
+ delete pGText;
+ continue;
+ }
+
AddGossipText( pGText );
} while( result->NextRow() );