Physics being simulated after code was deleted

I had written some code to simulate physics on my player character’s mesh when they died, but it wasn’t working, so I deleted it to try something else. After deleting it though, physics started getting simulated immediately upon beginplay and the mesh detaches from the actor. Does anyone know why this might be happening?

Click on the mesh component in character, and make sure Simulate Physics box is unchecked. Whatever you did may have confuded compiler and changed the default. Then when you deleted logic. The stale bool var may have been cached.

That was it! Somehow simulate physics got checked.