Update NavObstacle creation to new Mutex style

Updates NavObstacle creation to new Mutex style.
This commit is contained in:
smix8
2023-07-26 12:56:27 +02:00
parent 202e4b2c1e
commit a8f5bd6d43

View File

@ -788,8 +788,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);