Commit 6cb26ae3 authored by Martin Turski's avatar Martin Turski

if no model was found in the RenderingTest, early out.

parent 00b302fd
...@@ -30,6 +30,10 @@ void RenderingTest(void* gfxDevice) ...@@ -30,6 +30,10 @@ void RenderingTest(void* gfxDevice)
// handle original model data // handle original model data
auto model = theGame->GetModelManager().GetModelByName(modelName); auto model = theGame->GetModelManager().GetModelByName(modelName);
if ( !model )
return;
auto id = model->GetID(); auto id = model->GetID();
static streaming::ident_t lastID; static streaming::ident_t lastID;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment