Author: pepeto Date: Fri Oct 24 18:50:50 2014 New Revision: 26859 URL: http://svn.gna.org/viewcvs/freeciv?rev=26859&view=rev Log: Move the assertion in handle_unit_packet_common_assert() at its right location.
See gna patch #5381 Modified: branches/S2_5/client/packhand.c Modified: branches/S2_5/client/packhand.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/packhand.c?rev=26859&r1=26858&r2=26859&view=diff ============================================================================== --- branches/S2_5/client/packhand.c (original) +++ branches/S2_5/client/packhand.c Fri Oct 24 18:50:50 2014 @@ -1633,6 +1633,8 @@ need_units_report_update = TRUE; } /*** End of Create new unit ***/ + fc_assert_ret_val(punit != NULL, ret); + /* Check if we have to load the unit on a transporter. */ if (punit->client.transported_by != -1) { struct unit *ptrans @@ -1659,8 +1661,6 @@ #endif /* DEBUG_TRANSPORT */ } } - - fc_assert_ret_val(punit != NULL, ret); if (unit_is_in_focus(punit) || get_focus_unit_on_tile(unit_tile(punit)) _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits