mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Create a new node if the load index is outside the node count
This commit is contained in:
parent
6b02457190
commit
591be6c2fd
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue