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 ui.cpp scrolling bug #45305

Merged
merged 1 commit into from
Nov 8, 2020
Merged

Conversation

Pupsi-Mupsi
Copy link
Contributor

Summary

SUMMARY: Bugfixes "Fix ui.cpp scrolling bug"

Purpose of change

This fixes #45274.

  • Fixing a bug that was implemented by yours truly. My apologies.
  • My thanks to @irwiss and @Aivean.

Testing

  • Compiled using microsoft visual studio 2019.
  • Checked that everything is working as expected.

@anothersimulacrum anothersimulacrum added <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. labels Nov 8, 2020
@@ -823,17 +823,13 @@ bool uilist::scrollby( const int scrollby )
if( fselected >= recmax ) {
fselected = 0;
}
int x = 0;
for( size_t i = 0; i < fentries.size(); ++i ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not in the scope of this PR, but I'd suggest to look into merging these two nearly identical loops.

@ZhilkinSerg ZhilkinSerg merged commit 677daff into CleverRaven:master Nov 8, 2020
@Pupsi-Mupsi Pupsi-Mupsi deleted the PM-ui-fix branch November 8, 2020 23:03
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clothing modification menu navigation inconsistency
4 participants