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-861f7616d084master
parent
9609cb0005
commit
b5e7d1149d
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue