diff --git a/DetourCrowd/Include/DetourCrowd.h b/DetourCrowd/Include/DetourCrowd.h index e789fd3..079a3a0 100644 --- a/DetourCrowd/Include/DetourCrowd.h +++ b/DetourCrowd/Include/DetourCrowd.h @@ -253,7 +253,7 @@ public: /// The maximum number of agents that can be managed by the object. /// @return The maximum number of agents. - const int getAgentCount() const; + int getAgentCount() const; /// Adds a new agent to the crowd. /// @param[in] pos The requested position of the agent. [(x, y, z)] diff --git a/DetourCrowd/Include/DetourProximityGrid.h b/DetourCrowd/Include/DetourProximityGrid.h index b098261..ed553f9 100644 --- a/DetourCrowd/Include/DetourProximityGrid.h +++ b/DetourCrowd/Include/DetourProximityGrid.h @@ -59,7 +59,7 @@ public: int getItemCountAt(const int x, const int y) const; inline const int* getBounds() const { return m_bounds; } - inline const float getCellSize() const { return m_cellSize; } + inline float getCellSize() const { return m_cellSize; } }; dtProximityGrid* dtAllocProximityGrid(); diff --git a/DetourCrowd/Source/DetourCrowd.cpp b/DetourCrowd/Source/DetourCrowd.cpp index e7312ef..e02b7d8 100644 --- a/DetourCrowd/Source/DetourCrowd.cpp +++ b/DetourCrowd/Source/DetourCrowd.cpp @@ -474,7 +474,7 @@ const dtObstacleAvoidanceParams* dtCrowd::getObstacleAvoidanceParams(const int i return 0; } -const int dtCrowd::getAgentCount() const +int dtCrowd::getAgentCount() const { return m_maxAgents; }