CheatMenu: fix bottom entry being cut off sometimes

PS: cora <3 <3 <3 <3
master
cron 2021-01-17 01:11:05 +00:00
parent 54ce548e59
commit 3f7f0855d5
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ void CheatMenu::draw(video::IVideoDriver *driver, bool show_debug)
(height - (m_selected_category * (m_entry_height + m_gap)))
/ (m_entry_height + m_gap);
if (cheat_n <= target_normal) {
if (cheat_n < target_normal) {
int cheat_count = 0;
for (auto cheat = (*category)->m_cheats.begin();
cheat != (*category)->m_cheats.end(); cheat++) {