std::istringstream is(datastring, std::ios_base::binary);
std::string formspec = deSerializeLongString(is);
+ std::string formname = deSerializeString(is);
ClientEvent event;
event.type = CE_SHOW_FORMSPEC;
// pointer is required as event is a struct only!
// adding a std:string to a struct isn't possible
event.show_formspec.formspec = new std::string(formspec);
+ event.show_formspec.formname = new std::string(formname);
m_client_event_queue.push_back(event);
}
else