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

* hotfixes #858

Merged
merged 5 commits into from
Oct 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
* fix blank class in codex if barbarian not first in list
WALL OF JUSTICE committed Oct 27, 2024
commit ca3b7e54b42b65b07ea85cd0993d8a4d95649dd5
4 changes: 2 additions & 2 deletions src/ui/MainMenu.cpp
Original file line number Diff line number Diff line change
@@ -34352,7 +34352,7 @@ namespace MainMenu {
int index = -1;
if ( f->getUserData() )
{
index = (reinterpret_cast<intptr_t>(f->getUserData()) & 0x7F);
index = (reinterpret_cast<intptr_t>(f->getUserData()) & 0x7F) - 1;
}
Compendium_t::compendiumEntityCurrent.modelIndex = index + 1;
populateRecordsSectionItems(page_right_inner.getParent(), Compendium_t::Events_t::kEventCodexOffset + findCat->second, findCat->first.c_str(), index);
@@ -35901,7 +35901,7 @@ namespace MainMenu {
actualPos.h = std::max(compendiumPageRightInnerHeight, entry->getSize().y + entry->getSize().h);
page_right->setActualSize(actualPos);

Uint8 userData = classnum;
Uint8 userData = (classnum + 1);
if ( i == 0 )
{
userData |= 1 << 7;