fix(Scripts/Commands): .gps formatting transport offset (#19890)

* Update cs_misc.cpp

* Update PlayerUpdates.cpp
This commit is contained in:
天鹿
2024-09-07 12:03:41 +08:00
committed by GitHub
parent dd2167b00b
commit e7448f2986
2 changed files with 2 additions and 2 deletions

View File

@@ -265,7 +265,7 @@ void Player::Update(uint32 p_time)
if (!IsPositionValid()) // pussywizard: will crash below at eg. GetZoneAndAreaId
{
LOG_INFO("misc", "Player::Update - invalid position ({0:.1f}, {0:.1f}, {0:.1f})! Map: {}, MapId: {}, {}",
LOG_INFO("misc", "Player::Update - invalid position ({:0.1f}, {:0.1f}, {:0.1f})! Map: {}, MapId: {}, {}",
GetPositionX(), GetPositionY(), GetPositionZ(), (FindMap() ? FindMap()->GetId() : 0), GetMapId(), GetGUID().ToString());
GetSession()->KickPlayer("Invalid position");
return;