diff options
author | Treeston <treeston.mmoc@gmail.com> | 2020-09-12 19:17:31 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-02-05 23:05:14 +0100 |
commit | 7d0586812a8e7d17f901d9e01af424c4a4ff6bc7 (patch) | |
tree | 24e0ef752dcbda04a5d1fe7c33f47cbdefec3f92 /src/server/scripts/Commands | |
parent | 0e22b5763fcc658fc0dfe648ee575d03af625c71 (diff) |
Core/Misc: Fix some static analysis warnings exposed after 6b8f3d0.
(cherry picked from commit 59be657ca267667b3cbeb1f34d47df0382e97f53)
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r-- | src/server/scripts/Commands/cs_misc.cpp | 3 | ||||
-rw-r--r-- | src/server/scripts/Commands/cs_tele.cpp | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/server/scripts/Commands/cs_misc.cpp b/src/server/scripts/Commands/cs_misc.cpp index 49eb1b27807..d97fafaa23d 100644 --- a/src/server/scripts/Commands/cs_misc.cpp +++ b/src/server/scripts/Commands/cs_misc.cpp @@ -593,14 +593,13 @@ public: handler->PSendSysMessage(LANG_SUMMONING, nameLink.c_str(), handler->GetTrinityString(LANG_OFFLINE)); // in point where GM stay - CharacterDatabaseTransaction dummy; Player::SavePositionInDB(WorldLocation(_player->GetMapId(), _player->GetPositionX(), _player->GetPositionY(), _player->GetPositionZ(), _player->GetOrientation()), _player->GetZoneId(), - targetGuid, dummy); + targetGuid, nullptr); } return true; diff --git a/src/server/scripts/Commands/cs_tele.cpp b/src/server/scripts/Commands/cs_tele.cpp index de6812816d3..4d454465df8 100644 --- a/src/server/scripts/Commands/cs_tele.cpp +++ b/src/server/scripts/Commands/cs_tele.cpp @@ -132,8 +132,7 @@ public: WorldLocation loc(fieldsDB[0].GetUInt16(), fieldsDB[2].GetFloat(), fieldsDB[3].GetFloat(), fieldsDB[4].GetFloat(), 0.0f); uint32 zoneId = fieldsDB[1].GetUInt16(); - CharacterDatabaseTransaction dummy; - Player::SavePositionInDB(loc, zoneId, player->GetGUID(), dummy); + Player::SavePositionInDB(loc, zoneId, player->GetGUID(), nullptr); } } @@ -179,9 +178,8 @@ public: handler->PSendSysMessage(LANG_TELEPORTING_TO, nameLink.c_str(), handler->GetTrinityString(LANG_OFFLINE), tele->name.c_str()); - CharacterDatabaseTransaction dummy; Player::SavePositionInDB(WorldLocation(tele->mapId, tele->position_x, tele->position_y, tele->position_z, tele->orientation), - sMapMgr->GetZoneId(PhasingHandler::GetEmptyPhaseShift(), tele->mapId, tele->position_x, tele->position_y, tele->position_z), player->GetGUID(), dummy); + sMapMgr->GetZoneId(PhasingHandler::GetEmptyPhaseShift(), tele->mapId, tele->position_x, tele->position_y, tele->position_z), player->GetGUID(), nullptr); } return true; |