Core/Creatures: Allow overriding default gossip menu id

Port From (https://github.com/TrinityCore/TrinityCore/commit/09568736134372ec1a79b936a248eec30f071c8d)
This commit is contained in:
hondacrx
2023-03-14 02:22:08 -04:00
parent ccea9d09df
commit bc8dc03724
5 changed files with 17 additions and 3 deletions
+1 -1
View File
@@ -2698,7 +2698,7 @@ namespace Game.Entities
switch (source.GetTypeId())
{
case TypeId.Unit:
return source.ToCreature().GetCreatureTemplate().GossipMenuId;
return source.ToCreature().GetGossipMenuId();
case TypeId.GameObject:
return source.ToGameObject().GetGoInfo().GetGossipMenuId();
default: