Fix crash upon entering cam2 mission1. This fixes bug #9545.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2643 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2007-10-27 18:13:50 +00:00
parent 9609cb0005
commit b5e7d1149d
1 changed files with 1 additions and 1 deletions

View File

@ -1142,7 +1142,7 @@ void intDisplayMessageButton(WIDGET *psWidget, UDWORD xOffset,
pResearch = getResearchForMsg((VIEWDATA *)psMsg->pViewData);
//IMDType = IMDTYPE_RESEARCH;
//set the IMDType depending on what stat is associated with the research
if (pResearch->psStat)
if (pResearch && pResearch->psStat)
{
//we have a Stat associated with this research topic
if (StatIsStructure(pResearch->psStat))