Core/Gossip: Fixed loading ActionPoiID data
Port From (https://github.com/TrinityCore/TrinityCore/commit/1521a0d1312dff7599348f0d271b8605b034c127)
This commit is contained in:
@@ -637,11 +637,15 @@ namespace Game
|
||||
if (gMenuItem.ActionPoiId != 0)
|
||||
{
|
||||
if (gMenuItem.OptionNpc != GossipOptionNpc.None)
|
||||
{
|
||||
Log.outError(LogFilter.Sql, $"Table `gossip_menu_option` for menu {gMenuItem.MenuId}, id {gMenuItem.OptionId} can not use ActionPoiID for GossipOptionNpc different from GossipOptionNpc.None, ignoring");
|
||||
gMenuItem.ActionPoiId = 0;
|
||||
}
|
||||
else if (GetPointOfInterest(gMenuItem.ActionPoiId) == null)
|
||||
{
|
||||
Log.outError(LogFilter.Sql, $"Table `gossip_menu_option` for menu {gMenuItem.MenuId}, id {gMenuItem.OptionId} use non-existing ActionPoiID {gMenuItem.ActionPoiId}, ignoring");
|
||||
|
||||
gMenuItem.ActionPoiId = 0;
|
||||
gMenuItem.ActionPoiId = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (gMenuItem.BoxBroadcastTextId != 0)
|
||||
|
||||
Reference in New Issue
Block a user