mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Fixed silent crash if several Lara objects are present in level near dynamic light with shadow
This commit is contained in:
parent
12dae8df99
commit
9fbcc7b8cf
1 changed files with 6 additions and 0 deletions
|
@ -209,6 +209,12 @@ namespace TEN::Renderer
|
|||
|
||||
for (int k = 0; k < obj.ObjectMeshes.size(); k++)
|
||||
{
|
||||
if (item->MeshIds.size() <= k)
|
||||
{
|
||||
TENLog("Mesh structure was not properly initialized for object " + GetObjectName((GAME_OBJECT_ID)item->ObjectID));
|
||||
break;
|
||||
}
|
||||
|
||||
auto* mesh = GetMesh(item->MeshIds[k]);
|
||||
|
||||
for (auto& bucket : mesh->Buckets)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue