Try the updated files I uploaded just now. It's a brute-force fix to skip the mag check if the loadout variable is somehow undefined.
This error should be impossible since the group_manager already explicitly checks the loadout variable of each unit before it starts the main loop, and sets the...