From 9525ddbfef326079e0f943cf773a742ec2a132a7 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 9 Dec 2020 15:48:10 +0100 Subject: [PATCH] pgraph: LightAttrib::get_on_light(n) should call check_sorted() --- panda/src/pgraph/lightAttrib.I | 1 + 1 file changed, 1 insertion(+) diff --git a/panda/src/pgraph/lightAttrib.I b/panda/src/pgraph/lightAttrib.I index 0c6686181b..bc02883c7e 100644 --- a/panda/src/pgraph/lightAttrib.I +++ b/panda/src/pgraph/lightAttrib.I @@ -42,6 +42,7 @@ get_num_non_ambient_lights() const { */ INLINE NodePath LightAttrib:: get_on_light(size_t n) const { + check_sorted(); nassertr(n < _sorted_on_lights.size(), NodePath::fail()); return _sorted_on_lights[n]; }