Skip to content

Commit

Permalink
Fix Debug/ReleaseWithDebugInfo build errors and fix segfault at game …
Browse files Browse the repository at this point in the history
…exit in linux (#645)
  • Loading branch information
Masterkatze committed Jul 13, 2020
1 parent 3d62bd5 commit 32cb37a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xrAICore/Navigation/graph_engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class CGraphEngine

#ifndef AI_COMPILER
// solver algorithm
static const size_t SolverMaxVertexCount = 16 * 1024;
static constexpr size_t SolverMaxVertexCount = 16 * 1024;
using CSolverPriorityQueue = CDataStorageBinaryHeap;
// XXX: originally CSolverAlgorithm is constructed with 16*1024 limit
// while the following definitions use 8*1024 limit -- check if that's a mistake
Expand All @@ -61,7 +61,7 @@ class CGraphEngine
using CSolverAlgorithm = CAStar<_solver_dist_type, CSolverPriorityQueue, CSolverVertexManager,
CSolverVertexAllocator, true, SolverAlgorithmStorage>;
// string algorithm
static const size_t StringMaxVertexCount = 1024;
static constexpr size_t StringMaxVertexCount = 1024;
using CStringPriorityQueue = CDataStorageBinaryHeap;
using CStringVertexManager = CVertexManagerHashFixed<u32, shared_str, 128, StringMaxVertexCount>;
using CStringVertexAllocator = CVertexAllocatorFixed<StringMaxVertexCount>;
Expand Down
2 changes: 2 additions & 0 deletions src/xrGame/GamePersistent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ void CGamePersistent::OnAppEnd()

GMLib.Unload();

#ifdef XR_PLATFORM_WINDOWS
xr_delete(ansel);
#endif
}

void CGamePersistent::Start(LPCSTR op) { inherited::Start(op); }
Expand Down

0 comments on commit 32cb37a

Please sign in to comment.