Skip to content

Commit

Permalink
Create a new node if the load index is outside the node count
Browse files Browse the repository at this point in the history
  • Loading branch information
smallmodel authored Jan 17, 2025
1 parent 6b02457 commit 591be6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/fgame/navigate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2500,7 +2500,10 @@ PathNode *PathSearch::FindNearestSniperNode(Entity*pEnt, Vector& vPos, Entity *p

PathNode *PathSearch::GetSpawnNode(ClassDef *cls)
{
if (m_bNodesloaded) {
if (m_bNodesloaded
// Fixed in OPM
&& m_LoadIndex < nodecount
) {
return pathnodes[m_LoadIndex++];
} else {
// Otherwise create a new node
Expand Down

0 comments on commit 591be6c

Please sign in to comment.