src/group_cmd.cpp
changeset 7051 bd3f5d602c90
parent 6950 14ecb0acdfb4
child 7097 bc497a49fb45
equal deleted inserted replaced
7050:161a1f8e77e7 7051:bd3f5d602c90
   101 	Group *g = AllocateGroup();
   101 	Group *g = AllocateGroup();
   102 	if (g == NULL) return CMD_ERROR;
   102 	if (g == NULL) return CMD_ERROR;
   103 
   103 
   104 	if (flags & DC_EXEC) {
   104 	if (flags & DC_EXEC) {
   105 		g->owner = _current_player;
   105 		g->owner = _current_player;
   106 		g->string_id = STR_SV_GROUP_NAME;
   106 		g->string_id = STR_EMPTY;
   107 		g->replace_protection = false;
   107 		g->replace_protection = false;
   108 		g->vehicle_type = vt;
   108 		g->vehicle_type = vt;
   109 
   109 
   110 		InvalidateWindowData(GetWCForVT(vt), (vt << 11) | VLW_GROUP_LIST | _current_player);
   110 		InvalidateWindowData(GetWCForVT(vt), (vt << 11) | VLW_GROUP_LIST | _current_player);
   111 	}
   111 	}