Fix regressionn from d7dc0b76e5

This commit is contained in:
Wojtek Figat
2023-07-05 12:18:03 +02:00
parent 04ef3c60d5
commit bd0bc42adc

View File

@@ -157,7 +157,7 @@ void SceneRendering::UpdateActor(Actor* a, int32& key)
const int32 category = a->_drawCategory;
ScopeLock lock(Locker);
auto& list = Actors[category];
if (list.Count() > key) // Ignore invalid key softly
if (list.Count() <= key) // Ignore invalid key softly
return;
auto& e = list[key];
if (e.Actor == a)