Skip to content

Commit

Permalink
Pointers...
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Cornu committed Sep 25, 2023
1 parent 853ed8b commit 9d22989
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ivoc/scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -745,11 +745,11 @@ void Scene::pick(Canvas* c, const Allocation& a, int depth, Hit& h) {
}

long Scene::scene_list_index(Scene* s) {
auto it = std::find(scene_list.begin(), scene_list.end(), s);
if (it == scene_list.end()) {
auto it = std::find(scene_list->begin(), scene_list->end(), s);
if (it == scene_list->end()) {
return -1;

Check warning on line 750 in src/ivoc/scene.cpp

View check run for this annotation

Codecov / codecov/patch

src/ivoc/scene.cpp#L748-L750

Added lines #L748 - L750 were not covered by tests
}
return std::distance(scene_list.begin(), it);
return std::distance(scene_list->begin(), it);

Check warning on line 752 in src/ivoc/scene.cpp

View check run for this annotation

Codecov / codecov/patch

src/ivoc/scene.cpp#L752

Added line #L752 was not covered by tests
}

void Scene::save_all(std::ostream& o) {
Expand Down

0 comments on commit 9d22989

Please sign in to comment.