From 03ddfa89e2b50c6763217d84134e8aedfe8974be Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 14:31:19 +0000 Subject: [PATCH] Decompile fn_11750 (UISelectReplayDataWnd::Slot15) Batch #12316 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review. - fn_11750 UISelectReplayDataWnd::Slot15: logic confirmed by peer review Peer-reviewed-by: Yommy, Tanke, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Window/UIMessageBox.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Source/UI/Window/UIMessageBox.cpp b/Source/UI/Window/UIMessageBox.cpp index 62727f71..ac7da610 100644 --- a/Source/UI/Window/UIMessageBox.cpp +++ b/Source/UI/Window/UIMessageBox.cpp @@ -1909,11 +1909,21 @@ void UISelectReplayDataWnd::Slot15(int width, int height) { int ids[4] = {184, 185, 221, 400}; int positions[4][2] = {{189, height - 25}, {-100, -100}, {234, height - 25}, {100, height - 25}}; + std::string name; for (int index = 0; index < 4; ++index) { auto* button = new UIBitmapButton(); - button->SetBitmap((prefix + names[index][0] + ".bmp").c_str(), 0, 0); - button->SetBitmap((prefix + names[index][1] + ".bmp").c_str(), 1, 0); - button->SetBitmap((prefix + names[index][2] + ".bmp").c_str(), 2, 0); + name.assign(prefix); + name += names[index][0]; + name += ".bmp"; + button->SetBitmap(name.c_str(), 0, 0); + name.assign(prefix); + name += names[index][1]; + name += ".bmp"; + button->SetBitmap(name.c_str(), 1, 0); + name.assign(prefix); + name += names[index][2]; + name += ".bmp"; + button->SetBitmap(name.c_str(), 2, 0); button->SetSize(button->BitmapWidth(), button->BitmapHeight()); button->Move(positions[index][0], positions[index][1]); button->SetId(ids[index]);