Fix wrong predicting vc++ 2019 compiler

This commit is contained in:
s1lentq 2020-06-25 19:20:20 +07:00
parent 3878f46678
commit c56f00f7ed

View File

@ -695,7 +695,7 @@ bool NavAreaBuildPath(CNavArea *startArea, CNavArea *goalArea, const Vector *goa
{ {
dir++; dir++;
if (dir == NUM_DIRECTIONS) if (dir >= NUM_DIRECTIONS)
{ {
// checked all directions on floor - check ladders next // checked all directions on floor - check ladders next
searchFloor = false; searchFloor = false;