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 crash when drawing skills tab because of an unitialised variable #31342

Merged
merged 2 commits into from
Jun 12, 2019
Merged

Conversation

jagoly
Copy link
Contributor

@jagoly jagoly commented Jun 11, 2019

Summary

Fixes issue when built with gcc/clang introduced by 065310a

Additional context

Is it worth doing a PR for something this small? thought I'd go ahead and do it anyway since it seemed easier than opening an issue

@ifreund
Copy link
Contributor

ifreund commented Jun 11, 2019

It's 100% worth doing a PR, thanks for fixing this.

@ifreund ifreund added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Mechanics: Character / Player Character / Player mechanics Info / User Interface Game - player communication, menus, etc. labels Jun 11, 2019
@@ -1301,7 +1301,7 @@ Strength - 4; Dexterity - 4; Intelligence - 4; Perception - 4" ) );
catacurses::refresh();

int curtab = 1;
size_t min, max;
size_t min = 0, max = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please :)

Suggested change
size_t min = 0, max = 0;
size_t min = 0;
size_t max = 0;

@ZhilkinSerg ZhilkinSerg self-assigned this Jun 11, 2019
@scalpelenema
Copy link

with this commit it works fine but still doesn't show the speed alterations in the "speed" tab

@ZhilkinSerg ZhilkinSerg merged commit ed0eee6 into CleverRaven:master Jun 12, 2019
@ZhilkinSerg ZhilkinSerg removed their assignment Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. Mechanics: Character / Player Character / Player mechanics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants