Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix output result of remove_unused_objects #10029

Merged
merged 1 commit into from
Oct 1, 2019

Conversation

IntelOrca
Copy link
Contributor

remove_unused_objects returned a nonsense number. Only process objects that are actually selected in (hidden) object manager.

Also fix a nullptr exception if a path addition doesn't exist.

{
continue;
}
const ObjectRepositoryItem* item = &items[i];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use reference over pointer here

@Gymnasiast Gymnasiast merged commit 15767c3 into OpenRCT2:develop Oct 1, 2019
ZehMatt pushed a commit to ZehMatt/OpenRCT2 that referenced this pull request Oct 2, 2019
XplosiveLugnut pushed a commit to XplosiveLugnut/OpenRCT2 that referenced this pull request Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants