Skip to content

Commit

Permalink
Fix bug with VTOLs not going to rearm pads.
Browse files Browse the repository at this point in the history
Broken when removing cluster code.
  • Loading branch information
perim committed Dec 30, 2017
1 parent 7e9a52d commit e3ea0d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/droid.cpp
Expand Up @@ -2685,7 +2685,7 @@ bool vtolReadyToRearm(DROID *psDroid, STRUCTURE *psStruct)
return false;
}

if (psDroid->psActionTarget[0] != nullptr)
if (psDroid->psActionTarget[0] != nullptr && psDroid->psActionTarget[0] != psStruct)
{
// vtol is rearming at a different base
return false;
Expand Down

0 comments on commit e3ea0d9

Please sign in to comment.