Fixed a bug where it was possible to "write" a waypoint list without any "current" waypoint. Now the last waypoint is set as "current" in this case.
Fixed a bug where it was possible to "write" a waypoint list without any "current" waypoint. Now the last waypoint is set as "current" in this case.

diydrones/apm_planner,cfelipesouza/qgroundcontrol,UAVenture/qgroundcontrol,remspoor/qgroundcontrol,sutherlandm/apm_planner,jy723/qgroundcontrol,nado1688/qgroundcontrol,dagoodma/qgroundcontrol,kd0aij/qgroundcontrol,381426068/apm_planner,hejunbok/apm_planner,lis-epfl/qgroundcontrol,LIKAIMO/qgroundcontrol,xros/apm_planner,gpaes/apm_planner,catch-twenty-two/qgroundcontrol,diydrones/apm_planner,josephlewis42/UDenverQGC2,scott-eddy/qgroundcontrol,sverling/qgc_asl,mirkix/apm_planner,LittleBun/apm_planner,WorkerBees/apm_planner,UAVenture/qgroundcontrol,dcarpy/apm_planner,LIKAIMO/apm_planner,RedoXyde/PX4_qGCS,TheIronBorn/qgroundcontrol,dagoodma/qgroundcontrol,duststorm/apm_planner,kd0aij/qgroundcontrol,dagoodma/qgroundcontrol,BMP-TECH/qgroundcontrol,sutherlandm/apm_planner,Hunter522/qgroundcontrol,381426068/apm_planner,abcdelf/apm_planner,catch-twenty-two/qgroundcontrol,UAVenture/qgroundcontrol,gpaes/apm_planner,mrpilot2/apm_planner,fizzaly/qgroundcontrol,cfelipesouza/qgroundcontrol,xros/apm_planner,LIKAIMO/qgroundcontrol,kellyschrock/apm_planner,381426068/apm_planner,dagoodma/qgroundcontrol,sverling/qgc_asl,RedoXyde/PX4_qGCS,sverling/qgc_asl,nado1688/qgroundcontrol,caoxiongkun/qgroundcontrol,abcdelf/apm_planner,WorkerBees/apm_planner,RedoXyde/PX4_qGCS,sverling/qgc_asl,ethz-asl/qgc_asl,cfelipesouza/qgroundcontrol,Icenowy/apm_planner,chen0510566/apm_planner,LIKAIMO/apm_planner,nado1688/qgroundcontrol,caoxiongkun/qgroundcontrol,BMP-TECH/qgroundcontrol,LIKAIMO/apm_planner,iidioter/qgroundcontrol,fizzaly/qgroundcontrol,catch-twenty-two/qgroundcontrol,mihadyuk/qgroundcontrol,TheIronBorn/qgroundcontrol,duststorm/apm_planner,Icenowy/apm_planner,greenoaktree/qgroundcontrol,labtoast/apm_planner,LIKAIMO/apm_planner,LittleBun/apm_planner,Hunter522/qgroundcontrol,greenoaktree/qgroundcontrol,mrpilot2/apm_planner,greenoaktree/qgroundcontrol,fizzaly/qgroundcontrol,duststorm/apm_planner,mihadyuk/qgroundcontrol,iidioter/qgroundcontrol,Hunter522/qgroundcontrol,ethz-asl/qgc_asl,jy723/qgroundcontrol,iidioter/qgroundcontrol,fizzaly/qgroundcontrol,chen0510566/apm_planner,catch-twenty-two/qgroundcontrol,kd0aij/qgroundcontrol,chen0510566/apm_planner,hejunbok/apm_planner,scott-eddy/qgroundcontrol,mihadyuk/qgroundcontrol,mrpilot2/apm_planner,Icenowy/apm_planner,xros/apm_planner,sutherlandm/apm_planner,381426068/apm_planner,LIKAIMO/qgroundcontrol,abcdelf/apm_planner,CornerOfSkyline/qgroundcontrol,UAVenture/qgroundcontrol,labtoast/apm_planner,ethz-asl/qgc_asl,xros/apm_planner,kd0aij/qgroundcontrol,scott-eddy/qgroundcontrol,TheIronBorn/qgroundcontrol,diydrones/apm_planner,LittleBun/apm_planner,diydrones/apm_planner,LittleBun/apm_planner,hejunbok/apm_planner,devbharat/qgroundcontrol,josephlewis42/UDenverQGC2,cfelipesouza/qgroundcontrol,BMP-TECH/qgroundcontrol,dcarpy/apm_planner,gpaes/apm_planner,dagoodma/qgroundcontrol,381426068/apm_planner,remspoor/qgroundcontrol,catch-twenty-two/qgroundcontrol,hejunbok/apm_planner,nado1688/qgroundcontrol,kd0aij/qgroundcontrol,kellyschrock/apm_planner,RedoXyde/PX4_qGCS,WorkerBees/apm_planner,labtoast/apm_planner,josephlewis42/UDenverQGC2,dcarpy/apm_planner,diydrones/apm_planner,hejunbok/qgroundcontrol,LIKAIMO/apm_planner,gpaes/apm_planner,kellyschrock/apm_planner,gpaes/apm_planner,CornerOfSkyline/qgroundcontrol,mirkix/apm_planner,LIKAIMO/qgroundcontrol,mihadyuk/qgroundcontrol,lis-epfl/qgroundcontrol,hejunbok/qgroundcontrol,devbharat/qgroundcontrol,CornerOfSkyline/qgroundcontrol,LIKAIMO/qgroundcontrol,RedoXyde/PX4_qGCS,labtoast/apm_planner,xros/apm_planner,hejunbok/qgroundcontrol,labtoast/apm_planner,mihadyuk/qgroundcontrol,scott-eddy/qgroundcontrol,jy723/qgroundcontrol,caoxiongkun/qgroundcontrol,kellyschrock/apm_planner,mirkix/apm_planner,CornerOfSkyline/qgroundcontrol,Hunter522/qgroundcontrol,abcdelf/apm_planner,kd0aij/qgroundcontrol,nado1688/qgroundcontrol,chen0510566/apm_planner,TheIronBorn/qgroundcontrol,dcarpy/apm_planner,BMP-TECH/qgroundcontrol,mrpilot2/apm_planner,sutherlandm/apm_planner,LittleBun/apm_planner,BMP-TECH/qgroundcontrol,WorkerBees/apm_planner,greenoaktree/qgroundcontrol,remspoor/qgroundcontrol,LIKAIMO/qgroundcontrol,abcdelf/apm_planner,RedoXyde/PX4_qGCS,cfelipesouza/qgroundcontrol,lis-epfl/qgroundcontrol,fizzaly/qgroundcontrol,caoxiongkun/qgroundcontrol,hejunbok/qgroundcontrol,mirkix/apm_planner,mihadyuk/qgroundcontrol,dcarpy/apm_planner,sutherlandm/apm_planner,josephlewis42/UDenverQGC2,mrpilot2/apm_planner,devbharat/qgroundcontrol,cfelipesouza/qgroundcontrol,remspoor/qgroundcontrol,jy723/qgroundcontrol,devbharat/qgroundcontrol,scott-eddy/qgroundcontrol,devbharat/qgroundcontrol,dcarpy/apm_planner,LittleBun/apm_planner,jy723/qgroundcontrol,fizzaly/qgroundcontrol,CornerOfSkyline/qgroundcontrol,iidioter/qgroundcontrol,duststorm/apm_planner,Icenowy/apm_planner,lis-epfl/qgroundcontrol,jy723/qgroundcontrol,abcdelf/apm_planner,greenoaktree/qgroundcontrol,kellyschrock/apm_planner,dagoodma/qgroundcontrol,ethz-asl/qgc_asl,hejunbok/qgroundcontrol,caoxiongkun/qgroundcontrol,duststorm/apm_planner,Hunter522/qgroundcontrol,381426068/apm_planner,caoxiongkun/qgroundcontrol,LIKAIMO/apm_planner,mrpilot2/apm_planner,gpaes/apm_planner,remspoor/qgroundcontrol,scott-eddy/qgroundcontrol,iidioter/qgroundcontrol,diydrones/apm_planner,ethz-asl/qgc_asl,BMP-TECH/qgroundcontrol,iidioter/qgroundcontrol,remspoor/qgroundcontrol,Icenowy/apm_planner,sverling/qgc_asl,chen0510566/apm_planner,nado1688/qgroundcontrol,lis-epfl/qgroundcontrol,labtoast/apm_planner,greenoaktree/qgroundcontrol,UAVenture/qgroundcontrol,sutherlandm/apm_planner,hejunbok/apm_planner,chen0510566/apm_planner,kellyschrock/apm_planner,CornerOfSkyline/qgroundcontrol,mirkix/apm_planner,mirkix/apm_planner,TheIronBorn/qgroundcontrol,UAVenture/qgroundcontrol,Hunter522/qgroundcontrol,devbharat/qgroundcontrol,xros/apm_planner,hejunbok/qgroundcontrol,catch-twenty-two/qgroundcontrol,hejunbok/apm_planner,Icenowy/apm_planner,TheIronBorn/qgroundcontrol,duststorm/apm_planner