2
0
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:
Lioncash
2020-04-09 21:49:59 -04:00
parent 549f58d835
commit e0a4dc37a4
2 changed files with 5 additions and 4 deletions

View File

@@ -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);
}