forked from rosebudai/OpenRCT2-Web
Fix rebase
This commit is contained in:
1 parent
e1c08defc8
commit
7f9ff121b1
2 files changed
+4
-2
No files matched your search
@@ -414,7 +414,8 @@ namespace OpenRCT2::Ui::Windows
|
||||
{
|
||||
gDropdownItemsFormat[i] = selectedIndex == (int32_t)i ? STR_OPTIONS_DROPDOWN_ITEM_SELECTED
|
||||
: STR_OPTIONS_DROPDOWN_ITEM;
|
||||
set_format_arg_on((uint8_t*)&gDropdownItemsArgs[i], 0, const char*, items[i].c_str());
|
||||
auto sz = items[i].c_str();
|
||||
std::memcpy(&gDropdownItemsArgs[i], &sz, sizeof(const char*));
|
||||
}
|
||||
window_dropdown_show_text_custom_width(
|
||||
w->windowPos.x + widget->left, w->windowPos.y + widget->top, widget->bottom - widget->top + 1,
|
||||
|
||||
@@ -3296,7 +3296,8 @@ static void top_toolbar_init_map_menu(rct_window* w, rct_widget* widget)
|
||||
for (const auto& item : customMenuItems)
|
||||
{
|
||||
gDropdownItemsFormat[i] = STR_STRING;
|
||||
set_format_arg_on((uint8_t*)&gDropdownItemsArgs[i], 0, const char*, item.Text.c_str());
|
||||
auto sz = item.Text.c_str();
|
||||
std::memcpy(&gDropdownItemsArgs[i], &sz, sizeof(const char*));
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user