mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 15:07:43 +00:00
CPathFindSearch: Remove use of mutable on m_viz
We can just drop the const qualifier on DebugDraw() to get rid of the need to specify this.
This commit is contained in:
@@ -357,9 +357,10 @@ void CPathFindVisualizer::Draw(const CPathFindSearch& path) {
|
||||
m_spline.Render();
|
||||
}
|
||||
|
||||
void CPathFindSearch::DebugDraw() const {
|
||||
if (!m_viz)
|
||||
void CPathFindSearch::DebugDraw() {
|
||||
if (!m_viz) {
|
||||
m_viz.emplace();
|
||||
}
|
||||
m_viz->Draw(*this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user