From 43567f5a5f989eabaa7b9cbcc845471a3972014d Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 24 Sep 2023 12:24:39 +0200 Subject: Core/Commands: Fixed accessing empty optional in .modify faction command --- src/server/scripts/Commands/cs_modify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_modify.cpp b/src/server/scripts/Commands/cs_modify.cpp index 15ab53d023a..e02e67a1d7c 100644 --- a/src/server/scripts/Commands/cs_modify.cpp +++ b/src/server/scripts/Commands/cs_modify.cpp @@ -232,7 +232,7 @@ public: if (!factionid) { - handler->PSendSysMessage(LANG_CURRENT_FACTION, target->GetGUID().ToString().c_str(), *factionid, *flag, std::to_string(*npcflag).c_str(), *dyflag); + handler->PSendSysMessage(LANG_CURRENT_FACTION, target->GetGUID().ToString().c_str(), target->GetFaction(), *flag, std::to_string(*npcflag).c_str(), *dyflag); return true; } -- cgit v1.2.3