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

Remove unused attribute _pMaxLvl #6412

Merged
merged 1 commit into from
Aug 12, 2023

Conversation

ephphatha
Copy link
Contributor

Split this one from #6404 as it requires changing the reference save for the timedemo test.

In diablo/hellfire when a player is packed the maxLevel attribute is not saved. When the player is unpacked the Player struct is not memset and the maxLevel attribute is not initialised. This leaves whatever value happened to be there from a previous session (might be the current character, might be a different character). Either way it's never used so there's no harm setting it to 0 in the save file.

I did not re-record the demo, I just replaced the reference save with the actual save created from a test run after this change.

@AJenbo AJenbo added this to the 1.6.0 milestone Jul 27, 2023
AJenbo
AJenbo previously approved these changes Jul 27, 2023
@AJenbo AJenbo changed the base branch from master to development August 12, 2023 15:43
@AJenbo AJenbo dismissed their stale review August 12, 2023 15:43

The base branch was changed.

@AJenbo AJenbo merged commit 4e3f466 into diasurgical:development Aug 12, 2023
@ephphatha ephphatha deleted the remove/max-level branch August 14, 2023 10:05
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.

2 participants