Get rid of easily removable uses of const_cast
This commit is contained in:
@ -40,7 +40,7 @@ int64_t AStar3D::get_available_point_id() const {
|
||||
while (points.has(cur_new_id)) {
|
||||
cur_new_id++;
|
||||
}
|
||||
const_cast<int64_t &>(last_free_id) = cur_new_id;
|
||||
last_free_id = cur_new_id;
|
||||
}
|
||||
|
||||
return last_free_id;
|
||||
|
||||
Reference in New Issue
Block a user