mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 12:03:07 +01:00
Apply review suggestion
This commit is contained in:
@@ -279,7 +279,7 @@ void window_player_overview_dropdown(rct_window* w, rct_widgetindex widgetIndex,
|
||||
const auto groupId = network_get_group_id(dropdownIndex);
|
||||
const auto windowHandle = std::make_pair(w->classification, w->number);
|
||||
auto playerSetGroupAction = PlayerSetGroupAction(playerId, groupId);
|
||||
playerSetGroupAction.SetCallback([=](const GameAction* ga, const GameActions::Result* result) {
|
||||
playerSetGroupAction.SetCallback([windowHandle](const GameAction* ga, const GameActions::Result* result) {
|
||||
if (result->Error == GameActions::Status::Ok)
|
||||
{
|
||||
window_invalidate_by_number(windowHandle.first, windowHandle.second);
|
||||
|
||||
Reference in New Issue
Block a user