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

change parameter of plthrow from int to item_location #36106

Merged
merged 1 commit into from
Dec 17, 2019

Conversation

KorGgenT
Copy link
Member

Summary

SUMMARY: Infrastructure "refactor plthrow"

Purpose of change

changes the parameter of avatar_action::plthrow from an int pos to an item_location

Describe alternatives you've considered

Testing

load up a game, and throw all of the items in my inventory, either using the t menu or selecting the item specifically.

Additional context

requires #36016 as this pr is based on those commits

@KorGgenT KorGgenT added [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style 0.E Feature Freeze labels Dec 14, 2019
src/avatar_action.h Outdated Show resolved Hide resolved
@KorGgenT
Copy link
Member Author

currently having an issue with a seg fault while targeting. will revisit a little later.

@KorGgenT
Copy link
Member Author

and now that i load it again, 12 hours later, i can't replicate the crash. i changed item_location to a copy instead of a reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants