Separated Ortho and perspective matrices in camera #221
|
@ -218,7 +218,7 @@ namespace SHADE
|
|||
EntityID result = MAX_EID;
|
||||
for (auto& entity : entityVec)
|
||||
{
|
||||
if (entity->name == name)
|
||||
if (entity && entity->name == name)
|
||||
result = entity->GetEID();
|
||||
}
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue