Skip to content

Commit be4b73e

Browse files
committed
Update NavObstacle creation to new Mutex style
Updates NavObstacle creation to new Mutex style.
1 parent 4533cc5 commit be4b73e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/navigation/godot_navigation_server.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,8 +788,8 @@ COMMAND_2(agent_set_avoidance_priority, RID, p_agent, real_t, p_priority) {
788788
}
789789

790790
RID GodotNavigationServer::obstacle_create() {
791-
GodotNavigationServer *mut_this = const_cast<GodotNavigationServer *>(this);
792-
MutexLock lock(mut_this->operations_mutex);
791+
MutexLock lock(operations_mutex);
792+
793793
RID rid = obstacle_owner.make_rid();
794794
NavObstacle *obstacle = obstacle_owner.get_or_null(rid);
795795
obstacle->set_self(rid);

0 commit comments

Comments
 (0)