Skip to content

Commit 485bb85

Browse files
committed
Merge pull request godotengine#79916 from smix8/navobstacle_mutex_4.x
Update NavObstacle creation to new Mutex style
2 parents 4ba2f99 + be4b73e commit 485bb85

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
@@ -816,8 +816,8 @@ COMMAND_2(agent_set_avoidance_priority, RID, p_agent, real_t, p_priority) {
816816
}
817817

818818
RID GodotNavigationServer::obstacle_create() {
819-
GodotNavigationServer *mut_this = const_cast<GodotNavigationServer *>(this);
820-
MutexLock lock(mut_this->operations_mutex);
819+
MutexLock lock(operations_mutex);
820+
821821
RID rid = obstacle_owner.make_rid();
822822
NavObstacle *obstacle = obstacle_owner.get_or_null(rid);
823823
obstacle->set_self(rid);

0 commit comments

Comments
 (0)