fix compile warning:
warning: deleting object of polymorphic class type 'CPlayer' which has non-virtual destructor might cause undefined behaviour