You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Fix NavMesh map_update_id returning 0 results in errors
(cherry picked from commit d0564f2466)
This commit is contained in:
committed by
Yuri Sizov
parent
4355bf9cf3
commit
f8cf6eb567
@@ -1043,7 +1043,8 @@ void NavMap::sync() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update the update ID.
|
// Update the update ID.
|
||||||
map_update_id = (map_update_id + 1) % 9999999;
|
// Some code treats 0 as a failure case, so we avoid returning 0.
|
||||||
|
map_update_id = map_update_id % 9999999 + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do we have modified obstacle positions?
|
// Do we have modified obstacle positions?
|
||||||
|
|||||||
Reference in New Issue
Block a user