mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[11922] Add ASSERT helper function to print entry and guid info
Use this in first cases: GetAngle and in PathFinder::BuildPolyPath Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
b03443c425
commit
49bd484a41
6 changed files with 23 additions and 11 deletions
|
|
@ -259,8 +259,8 @@ void PathFinder::BuildPolyPath(const Vector3 &startPos, const Vector3 &endPos)
|
|||
{
|
||||
for (pathStartIndex = 0; pathStartIndex < m_polyLength; ++pathStartIndex)
|
||||
{
|
||||
// here to carch few bugs
|
||||
MANGOS_ASSERT(m_pathPolyRefs[pathStartIndex] != INVALID_POLYREF);
|
||||
// here to catch few bugs
|
||||
MANGOS_ASSERT(m_pathPolyRefs[pathStartIndex] != INVALID_POLYREF || m_sourceUnit->PrintEntryError("PathFinder::BuildPolyPath"));
|
||||
|
||||
if (m_pathPolyRefs[pathStartIndex] == startPoly)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue