Fix EndScene assert
Entity flags