Skip to content

Commit 425a91c

Browse files
Zegerieagleivg
authored andcommitted
xrAICore: Fix hash_fixed_vertex_manager::to_u32 by forward declaring
1 parent 1740de5 commit 425a91c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/xrAICore/Navigation/vertex_manager_hash_fixed_inline.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88

99
#pragma once
1010

11+
namespace hash_fixed_vertex_manager
12+
{
13+
u32 to_u32(const GraphEngineSpace::CWorldState&);
14+
u32 to_u32(const shared_str&);
15+
}
16+
1117
#define TEMPLATE_SPECIALIZATION \
1218
template <typename TPathId, typename TIndex, u32 HashSize, u32 FixSize> \
1319
template <typename TPathBuilder, typename TVertexAllocator, typename TCompoundVertex>
@@ -67,11 +73,7 @@ inline bool CHashFixedVertexManager::is_opened(const Vertex& vertex) const { ret
6773
TEMPLATE_SPECIALIZATION
6874
inline u32 CHashFixedVertexManager::hash_index(const Index& vertex_id) const
6975
{
70-
#ifdef LINUX // FIXME!!
71-
return 0;
72-
#else
7376
return hash_fixed_vertex_manager::to_u32(vertex_id) % HashSize;
74-
#endif
7577
}
7678

7779
TEMPLATE_SPECIALIZATION

0 commit comments

Comments
 (0)