Skip to content

Commit 35ff0bc

Browse files
committed
xrGame/CustomMonster.cpp: fixed wrong check that was leading to AI subsystem confusement
Closes #1733, thanks @alsed finding the clue!
1 parent 6307ab5 commit 35ff0bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrGame/CustomMonster.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ bool CCustomMonster::net_Spawn(CSE_Abstract* DC)
748748
const Fvector vertex_pos = ai().level_graph().vertex_position(ai_location().level_vertex_id());
749749
const u32 level_vertex_id = movement().restrictions().accessible_nearest(vertex_pos, dest_position);
750750

751-
const bool vertex_id_is_valid = ai().game_graph().valid_vertex_id(level_vertex_id);
751+
const bool vertex_id_is_valid = ai().level_graph().valid_vertex_id(level_vertex_id);
752752
VERIFY(vertex_id_is_valid);
753753
if (vertex_id_is_valid)
754754
{

0 commit comments

Comments
 (0)