Fix crash related to #413 code: changing SIS crew when no escorts present

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1173 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2003-09-01 21:06:14 +00:00
parent f6ece8daf2
commit 4003df44af
+1
View File
@@ -820,6 +820,7 @@ DoModifyShips (PMENU_STATE pMS)
else if (select || cancel) else if (select || cancel)
{ {
if ((pMS->delta_item & MODIFY_CREW_FLAG) if ((pMS->delta_item & MODIFY_CREW_FLAG)
&& hStarShip != 0
&& StarShipPtr->ShipInfo.crew_level == 0) && StarShipPtr->ShipInfo.crew_level == 0)
{ {
SetFlashRect (NULL_PTR, (FRAME)0); SetFlashRect (NULL_PTR, (FRAME)0);