From 7b92e4372c5e2bde76bc4a365628db25035ae6eb Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 6 Nov 2019 00:54:23 +0100 Subject: SCUMM HE: MBC: Pass userid for the endsession request --- engines/scumm/he/moonbase/net_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/scumm/he/moonbase/net_main.cpp b/engines/scumm/he/moonbase/net_main.cpp index 0412b0bd95..5a8323e63c 100644 --- a/engines/scumm/he/moonbase/net_main.cpp +++ b/engines/scumm/he/moonbase/net_main.cpp @@ -203,7 +203,7 @@ int Net::endSession() { new Common::Callback(this, &Net::endSessionErrorCallback)); char *buf = (char *)malloc(MAX_PACKET_SIZE); - snprintf(buf, MAX_PACKET_SIZE, "{\"sessionid\":%d}", _sessionid); + snprintf(buf, MAX_PACKET_SIZE, "{\"sessionid\":%d, \"userid\":%d}", _sessionid, _myUserId); rq.setPostData((byte *)buf, strlen(buf)); rq.setContentType("application/json"); -- cgit v1.2.3