- Added check nullptr for if clicking on an item or character cast.