Skip to content

Commit

Permalink
Fix coverity bug #1108912 (FORWARD_NULL)
Browse files Browse the repository at this point in the history
  • Loading branch information
vexed committed Jul 16, 2015
1 parent 73984e7 commit 906f6f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/order.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1594,6 +1594,7 @@ void orderDroidBase(DROID *psDroid, DROID_ORDER_DATA *psOrder)
psDroid->order = DroidOrder(DORDER_NONE);
break;
}
ASSERT_OR_RETURN(, psOrder->psObj != NULL, "Can't command a NULL");
cmdDroidAddDroid((DROID *)psOrder->psObj, psDroid);
break;
case DORDER_RETREAT:
Expand Down

0 comments on commit 906f6f3

Please sign in to comment.