Core/Player: Fixed accessing possibly deallocated memory

This commit is contained in:
Shauren
2012-03-25 22:24:11 +02:00
parent 107a6f2c4b
commit 9ec61089be
+3 -3
View File
@@ -14340,15 +14340,15 @@ void Player::OnGossipSelect(WorldObject* source, uint32 gossipListId, uint32 men
{
case GOSSIP_OPTION_GOSSIP:
{
if (menuItemData->GossipActionPoi)
PlayerTalkClass->SendPointOfInterest(menuItemData->GossipActionPoi);
if (menuItemData->GossipActionMenuId)
{
PrepareGossipMenu(source, menuItemData->GossipActionMenuId);
SendPreparedGossip(source);
}
if (menuItemData->GossipActionPoi)
PlayerTalkClass->SendPointOfInterest(menuItemData->GossipActionPoi);
break;
}
case GOSSIP_OPTION_OUTDOORPVP: