Skip to content

Commit

Permalink
xrAICore: Fix hash_fixed_vertex_manager::to_u32 by forward declaring
Browse files Browse the repository at this point in the history
  • Loading branch information
Zegeri authored and eagleivg committed Nov 6, 2018
1 parent 1740de5 commit 425a91c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/xrAICore/Navigation/vertex_manager_hash_fixed_inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

#pragma once

namespace hash_fixed_vertex_manager
{
u32 to_u32(const GraphEngineSpace::CWorldState&);
u32 to_u32(const shared_str&);
}

#define TEMPLATE_SPECIALIZATION \
template <typename TPathId, typename TIndex, u32 HashSize, u32 FixSize> \
template <typename TPathBuilder, typename TVertexAllocator, typename TCompoundVertex>
Expand Down Expand Up @@ -67,11 +73,7 @@ inline bool CHashFixedVertexManager::is_opened(const Vertex& vertex) const { ret
TEMPLATE_SPECIALIZATION
inline u32 CHashFixedVertexManager::hash_index(const Index& vertex_id) const
{
#ifdef LINUX // FIXME!!
return 0;
#else
return hash_fixed_vertex_manager::to_u32(vertex_id) % HashSize;
#endif
}

TEMPLATE_SPECIALIZATION
Expand Down

0 comments on commit 425a91c

Please sign in to comment.