Hi, I can't seem to fix this error... this is the error. All classes are VALID.
request for member 'charname' in '* i.__gnu_cxx::__normal_iterator<_Iterator, _Container>:perator-> [with _Iterator = game_char**, _Container = std::vector<game_char*>, __gnu_cxx::__normal_iterator<_Iterator, _Container>:ointer = game_char**]()', which is of non-class type 'game_char*'
Code:
int game_char::listen_ev(){
for( std::vector<game_char*>::iterator i=ev_listeners.begin(); i<ev_listeners.end();i++){
if(this->charname.compare(i->charname.c_str())){
return -1;
}
}
//survived return manhunt
ev_listeners.push_back(this);
return 0;
}