Decompile 2 functions in Source/UI/Lists/UIScrollBar.cpp
Batch #12783 by cremane: 2 byte-identical, 0 confirmed by peer review. - fn_11279 UIListBoxEx::FindLine: byte-identical - fn_11285 UIChatHisBox::HistoryText: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
353f4d84a0
commit
3be6255bbe
1 changed files with 2 additions and 2 deletions
|
|
@ -501,7 +501,7 @@ void UIScrollBar::Configure(int x, int y, unsigned char vertical, int length) {
|
|||
// FUNCTION: fn_11279
|
||||
int UIListBoxEx::FindLine(const std::string& text) {
|
||||
const auto it = std::find_if(this->lines.begin(), this->lines.end(), [text](const auto& entry) { return text == entry.second.text; });
|
||||
return it == this->lines.end() ? -1 : it->first;
|
||||
return it != this->lines.end() ? it->first : -1;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00880920
|
||||
|
|
@ -672,7 +672,7 @@ int UITabControl::TabAt(int x, int y) {
|
|||
// OFFSET: 0x00880BB0
|
||||
// FUNCTION: fn_11285
|
||||
const char* UIChatHisBox::HistoryText(unsigned int index) {
|
||||
if (index < this->history.size() && !this->history[index].empty()) {
|
||||
if (index < this->history.size() && this->history[index].size() > 0) {
|
||||
return this->history[index].c_str();
|
||||
}
|
||||
return nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue