Fix end camera crash

This commit is contained in:
auria.mg 2016-10-02 20:18:40 -04:00
parent 3f71745d92
commit 6e37c5375a

View File

@ -62,7 +62,7 @@ void CameraEnd::readEndCamera(const XMLNode &root)
unsigned int index = i;
// In reverse mode, reverse the order in which the
// end cameras are read.
if(DriveGraph::get()->isReverse())
if(DriveGraph::get() != NULL && DriveGraph::get()->isReverse())
index = root.getNumNodes() - 1 - i;
const XMLNode *node = root.getNode(index);
EndCameraInformation eci;