diff options
author | Shauren <shauren.trinity@gmail.com> | 2025-01-03 13:04:19 +0100 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2025-01-03 18:05:04 +0100 |
commit | 5da556b9a4094da461a4c88249fb0359172d72d2 (patch) | |
tree | a18f013ee77e9f2bb9397c63d240cc4e49b12f6e /src/server/game/Globals/ObjectMgr.cpp | |
parent | a7587de5ede4da43cdc87a98322e2002093985bf (diff) |
Core/Database: Added std::span based functions to Field and PreparedStatement
(cherry picked from commit 27860c3316b7354c6bf17cac82992085d2905934)
# Conflicts:
# src/server/game/Entities/Player/Player.cpp
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rw-r--r-- | src/server/game/Globals/ObjectMgr.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index 58c08adee51..348937a7a19 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -6847,6 +6847,8 @@ bool ObjectMgr::AddGraveyardLink(uint32 id, uint32 zoneId, uint32 team, bool per // Store graveyard condition if team is set if (team != 0) { + using namespace std::string_view_literals; + WorldDatabasePreparedStatement* conditionStmt = WorldDatabase.GetPreparedStatement(WORLD_INS_CONDITION); conditionStmt->setUInt32(0, CONDITION_SOURCE_TYPE_GRAVEYARD); // SourceTypeOrReferenceId conditionStmt->setUInt32(1, zoneId); // SourceGroup @@ -6861,8 +6863,8 @@ bool ObjectMgr::AddGraveyardLink(uint32 id, uint32 zoneId, uint32 team, bool per conditionStmt->setUInt8(10, 0); // NegativeCondition conditionStmt->setUInt32(11, 0); // ErrorType conditionStmt->setUInt32(12, 0); // ErrorTextId - conditionStmt->setString(13, ""); // ScriptName - conditionStmt->setString(14, ""); // Comment + conditionStmt->setString(13, ""sv); // ScriptName + conditionStmt->setString(14, ""sv); // Comment WorldDatabase.Execute(conditionStmt); |