diff options
author | jackpoz <giacomopoz@gmail.com> | 2020-03-21 17:39:15 +0100 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2020-03-21 17:39:15 +0100 |
commit | 296f6aab402407a2798f3a300b256cc75d59fec4 (patch) | |
tree | 903d5af3e97e4554a1a07343c69718310e5d7efb /src | |
parent | 890c800cdbe242032a5bcd29d4522cb90bc6ae84 (diff) |
Core/Movement: Improve log when starting a spline with invalid arguments
Improve log when starting a spline with invalid arguments, for example when starting a spline with just 1 point.
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Movement/Spline/MoveSpline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Movement/Spline/MoveSpline.cpp b/src/server/game/Movement/Spline/MoveSpline.cpp index 991979ac83e..8f2ed90de51 100644 --- a/src/server/game/Movement/Spline/MoveSpline.cpp +++ b/src/server/game/Movement/Spline/MoveSpline.cpp @@ -199,7 +199,7 @@ bool MoveSplineInitArgs::Validate(Unit* unit) const if (!(exp))\ {\ if (unit)\ - TC_LOG_ERROR("misc.movesplineinitargs", "MoveSplineInitArgs::Validate: expression '%s' failed for GUID: %u Entry: %u", #exp, unit->GetTypeId() == TYPEID_PLAYER ? unit->GetGUID().GetCounter() : unit->ToCreature()->GetSpawnId(), unit->GetEntry());\ + TC_LOG_ERROR("misc.movesplineinitargs", "MoveSplineInitArgs::Validate: expression '%s' failed for %s", #exp, unit->GetDebugInfo().c_str());\ else\ TC_LOG_ERROR("misc.movesplineinitargs", "MoveSplineInitArgs::Validate: expression '%s' failed for cyclic spline continuation", #exp); \ return false;\ |