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

superfluous variables #16

Open
ReiquelApplegate opened this issue Mar 30, 2024 · 3 comments
Open

superfluous variables #16

ReiquelApplegate opened this issue Mar 30, 2024 · 3 comments

Comments

@ReiquelApplegate
Copy link
Contributor

In count_item_drop_sets() in zquest.cpp, we could probably easily remove the bool found.

@ReiquelApplegate
Copy link
Contributor Author

File->Save As runs this function

@ReiquelApplegate
Copy link
Contributor Author

the int32_t count declaration uselessly initializes it to zero since the for loop reinitializes it to 255

@ReiquelApplegate
Copy link
Contributor Author

this function also assumes that the questmaker is using a contiguous sequence of item drop slots

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

No branches or pull requests

1 participant