From a15033c7ec86015d230895465b065fa299c0c54b Mon Sep 17 00:00:00 2001 From: RenechCDDA <84619419+RenechCDDA@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:33:17 -0500 Subject: [PATCH] Lock the door... and the door lock? Why are these separate again? --- tests/npc_behavior_rules_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/npc_behavior_rules_test.cpp b/tests/npc_behavior_rules_test.cpp index e97db9be27c77..db0cb2c31cb10 100644 --- a/tests/npc_behavior_rules_test.cpp +++ b/tests/npc_behavior_rules_test.cpp @@ -237,6 +237,8 @@ TEST_CASE( "NPC-rules-avoid-locks", "[npc_rules]" ) vehicle_part *door = door_parts_at_target.front(); // The door must be closed for the lock to be effective. door->open = false; + // For some reason, both the door and the door lock must be set to locked. + door->locked = true; // NOTE: The door lock is a separate part. We must ensure both the door exists and the door lock exists for this test. std::vector door_lock_parts_at_target = test_vehicle->get_parts_at(