Skip to content

Commit

Permalink
Merge pull request #79916 from smix8/navobstacle_mutex_4.x
Browse files Browse the repository at this point in the history
Update NavObstacle creation to new Mutex style
  • Loading branch information
YuriSizov committed Jul 26, 2023
2 parents 7305318 + a8f5bd6 commit 8367152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/navigation/godot_navigation_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,8 +816,8 @@ COMMAND_2(agent_set_avoidance_priority, RID, p_agent, real_t, p_priority) {
}

RID GodotNavigationServer::obstacle_create() {
GodotNavigationServer *mut_this = const_cast<GodotNavigationServer *>(this);
MutexLock lock(mut_this->operations_mutex);
MutexLock lock(operations_mutex);

RID rid = obstacle_owner.make_rid();
NavObstacle *obstacle = obstacle_owner.get_or_null(rid);
obstacle->set_self(rid);
Expand Down

0 comments on commit 8367152

Please sign in to comment.