Merge pull request #150 from N1xx1/patch-1

Segmentation Fault for pointer being null.
This commit is contained in:
Aloshi 2013-12-22 09:21:46 -08:00
commit 9249d67048

View file

@ -211,7 +211,7 @@ void ViewController::render(const Eigen::Affine3f& parentTrans)
Eigen::Vector3f viewEnd = trans.inverse() * Eigen::Vector3f((float)Renderer::getScreenWidth(), (float)Renderer::getScreenHeight(), 0); Eigen::Vector3f viewEnd = trans.inverse() * Eigen::Vector3f((float)Renderer::getScreenWidth(), (float)Renderer::getScreenHeight(), 0);
// draw systemlist // draw systemlist
mSystemListView->render(trans); if(mSystemListView) mSystemListView->render(trans);
// draw gamelists // draw gamelists
for(auto it = mGameListViews.begin(); it != mGameListViews.end(); it++) for(auto it = mGameListViews.begin(); it != mGameListViews.end(); it++)