Core/Commands: Fixed accessing empty optional in .modify faction command
Port From (https://github.com/TrinityCore/TrinityCore/commit/43567f5a5f989eabaa7b9cbcc845471a3972014d)
This commit is contained in:
@@ -114,7 +114,7 @@ namespace Game.Chat
|
|||||||
|
|
||||||
if (!factionid.HasValue)
|
if (!factionid.HasValue)
|
||||||
{
|
{
|
||||||
handler.SendSysMessage(CypherStrings.CurrentFaction, target.GetGUID().ToString(), factionid.Value, flag.Value, npcflag.Value, dyflag.Value);
|
handler.SendSysMessage(CypherStrings.CurrentFaction, target.GetGUID().ToString(), target.GetFaction(), flag.Value, npcflag.Value, dyflag.Value);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user