mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 15:24:30 +01:00
Convert most remaining C-style casts to C++-style ones (#11867)
This commit is contained in:
committed by
GitHub
parent
7646f1b7e4
commit
9ef8d6da42
@@ -840,7 +840,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
else if (desc.Type == "dropdown")
|
||||
{
|
||||
widget.type = WWT_DROPDOWN;
|
||||
if (desc.SelectedIndex >= 0 && (size_t)desc.SelectedIndex < desc.Items.size())
|
||||
if (desc.SelectedIndex >= 0 && static_cast<size_t>(desc.SelectedIndex) < desc.Items.size())
|
||||
{
|
||||
widget.string = const_cast<utf8*>(desc.Items[desc.SelectedIndex].c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user