Accessing Array

Your array elements are pointers so instead of uaing . you have to use -> to access its members:

PlayingFiled[0]->type

You should also ensure that the index is valid and that the element is not nullptr.