NASA
TrickHLA — High Level Architecture Simulation Engine
Bug Description
Inverted comparison in federation instance search. The code used != operator instead of == when matching MOM_instance_name against tMOMName.
Impact
When federation removal was triggered, the system recorded and removed the last mismatched entity (FedC) instead of the correct one, causing state corruption. The resigning federation remained in memory, and with only one entity present the function exited early without removing anything.
source/TrickHLA/Federate.cpp:4213Maintainer Response
Confirmed by NASA internal maintainer (ezcrues): 'Yep, that looks like a bug.' Fix committed directly to the develop branch with hash a26e0df.