aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-09-24 12:24:39 +0200
committerShauren <shauren.trinity@gmail.com>2023-09-24 12:24:39 +0200
commit43567f5a5f989eabaa7b9cbcc845471a3972014d (patch)
treed351f8703e47f83b6f89ff56f0acf0103f59d5d5 /src
parent2e8859237dff84d92626a80c99c38647d04acdf3 (diff)
Core/Commands: Fixed accessing empty optional in .modify faction command
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Commands/cs_modify.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}