From 0b1d09ff4f4e92986f6abdbc57db97c18707196a Mon Sep 17 00:00:00 2001 From: sapier Date: Thu, 3 Jan 2013 17:59:28 +0000 Subject: Fix buttons not working for Lua-triggered formspecs --- src/client.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 216d86cd4..9969ef538 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1906,12 +1906,14 @@ void Client::ProcessData(u8 *data, u32 datasize, u16 sender_peer_id) 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 -- cgit v1.2.3