Skip to content

Commit

Permalink
Fix possible crash in campaign when returning home to factory that do…
Browse files Browse the repository at this point in the history
…es not exist. Discovered by Coverity scanner.
  • Loading branch information
perim committed Nov 6, 2013
1 parent 0f7a152 commit 83cd123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1651,7 +1651,7 @@ static void missionResetDroids(void)
psFactory = (FACTORY *)psStruct->pFunctionality;
}
//find a location next to the factory
if (psStruct)
if (psFactory)
{
PICKTILE pickRes;
UDWORD x, y;
Expand Down

0 comments on commit 83cd123

Please sign in to comment.