From c8abacafaf3e33cf656df172dee39a2d722fb81c Mon Sep 17 00:00:00 2001 From: Exynox Date: Sun, 27 Nov 2022 01:06:00 +0200 Subject: [PATCH] Made code compatible with clang, ignored test dir in the IDE. --- .idea/misc.xml | 5 +++++ game/src/sectree.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 79b3c94..b528caa 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,9 @@ + + + + + \ No newline at end of file diff --git a/game/src/sectree.h b/game/src/sectree.h index 2b0b3df..0e8dd3d 100644 --- a/game/src/sectree.h +++ b/game/src/sectree.h @@ -87,7 +87,7 @@ class SECTREE template LPENTITY find_if (_Func & func) const { - LPSECTREE_LIST::iterator it_tree = m_neighbor_list.begin(); + auto it_tree = m_neighbor_list.begin(); while (it_tree != m_neighbor_list.end()) {