Fixes crash when using serialization test mode

This was SVN commit r12928.
This commit is contained in:
historic_bruno 2012-12-03 19:00:20 +00:00
parent e91a918164
commit 17a50c8d93

View File

@ -688,7 +688,8 @@ void CXMLReader::ReadEnvironment(XMBElement parent)
}
else if (element_name == el_posteffect)
{
m_MapReader.pPostproc->SetPostEffect(postproc.GetText().FromUTF8());
if (m_MapReader.pPostproc)
m_MapReader.pPostproc->SetPostEffect(postproc.GetText().FromUTF8());
}
}
}