From 0deaf73d9b1783264e0d7d02b131e48693e812da Mon Sep 17 00:00:00 2001 From: Orange Date: Tue, 3 Sep 2024 22:10:09 +0300 Subject: [PATCH] fixed warnings --- source/Matrix.cpp | 4 ++-- source/pathfinding/NavigationMesh.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Matrix.cpp b/source/Matrix.cpp index 1c01ddd..6d2e11b 100644 --- a/source/Matrix.cpp +++ b/source/Matrix.cpp @@ -200,8 +200,8 @@ namespace omath m_columns = other.m_columns; m_data = std::move(other.m_data); - other.m_rows = 0.f; - other.m_columns = 0.f; + other.m_rows = 0; + other.m_columns = 0; return *this; diff --git a/source/pathfinding/NavigationMesh.cpp b/source/pathfinding/NavigationMesh.cpp index 8b96248..1a106df 100644 --- a/source/pathfinding/NavigationMesh.cpp +++ b/source/pathfinding/NavigationMesh.cpp @@ -43,7 +43,7 @@ namespace omath::pathfinding for (const auto& [vertex, neighbors] : m_verTextMap) { - const uint16_t neighborsCount = neighbors.size(); + const auto neighborsCount = neighbors.size(); dumpToVector(vertex, raw); dumpToVector(neighborsCount, raw);