MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / DeleteGroupCallback

Method DeleteGroupCallback

src/group_gui.cpp:720–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718 }
719
720 static void DeleteGroupCallback(Window *win, bool confirmed)
721 {
722 if (confirmed) {
723 VehicleGroupWindow *w = (VehicleGroupWindow*)win;
724 w->vli.SetIndex(ALL_GROUP);
725 Command<CMD_DELETE_GROUP>::Post(STR_ERROR_GROUP_CAN_T_DELETE, w->group_confirm);
726 }
727 }
728
729 void OnMouseLoop() override
730 {

Callers

nothing calls this directly

Calls 1

SetIndexMethod · 0.45

Tested by

no test coverage detected