Fixed a crash caused by casting Player to S_Player